Package ru.tinkoff.kora.json.common
Class UuidJsonCodec
java.lang.Object
ru.tinkoff.kora.json.common.UuidJsonCodec
- All Implemented Interfaces:
JsonReader<UUID>,JsonWriter<UUID>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ru.tinkoff.kora.json.common.JsonReader
read, read, read, readMethods inherited from interface ru.tinkoff.kora.json.common.JsonWriter
toByteArray, toByteArrayUnchecked, toString, toStringUnchecked
-
Constructor Details
-
UuidJsonCodec
public UuidJsonCodec()
-
-
Method Details
-
write
public void write(com.fasterxml.jackson.core.JsonGenerator gen, @Nullable UUID object) throws IOException - Specified by:
writein interfaceJsonWriter<UUID>- Parameters:
gen- jackson generator that will be used for writing object to JSONobject- to serialize into JSON- Throws:
IOException- in case of serialization errors
-
read
- Specified by:
readin interfaceJsonReader<UUID>- Throws:
IOException
-