Class ObjectIdSerializer<I>
java.lang.Object
org.dominokit.jacksonapt.ser.bean.ObjectIdSerializer<I>
public class ObjectIdSerializer<I>
extends java.lang.Object
Contains the id of a bean and a serializer to facilitate the serialization of the next instances of the object.
- Version:
- $Id: $
- Author:
- Nicolas Morel
-
Constructor Summary
Constructors Constructor Description ObjectIdSerializer(I id, JsonSerializer<I> serializer)Constructor for ObjectIdSerializer. -
Method Summary
Modifier and Type Method Description voidserializeId(JsonWriter writer, JsonSerializationContext ctx)serializeIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ObjectIdSerializer
Constructor for ObjectIdSerializer.
- Parameters:
id- a I object.serializer- aJsonSerializerobject.
-
-
Method Details
-
serializeId
serializeId
- Parameters:
writer- aJsonWriterobject.ctx- aJsonSerializationContextobject.
-