Class UuidJsonCodec

java.lang.Object
ru.tinkoff.kora.json.common.UuidJsonCodec
All Implemented Interfaces:
JsonReader<UUID>, JsonWriter<UUID>

public class UuidJsonCodec extends Object implements JsonReader<UUID>, JsonWriter<UUID>
See Also:
  • Constructor Details

    • UuidJsonCodec

      public UuidJsonCodec()
  • Method Details

    • write

      public void write(com.fasterxml.jackson.core.JsonGenerator gen, @Nullable UUID object) throws IOException
      Specified by:
      write in interface JsonWriter<UUID>
      Parameters:
      gen - jackson generator that will be used for writing object to JSON
      object - to serialize into JSON
      Throws:
      IOException - in case of serialization errors
    • read

      @Nullable public UUID read(com.fasterxml.jackson.core.JsonParser parser) throws IOException
      Specified by:
      read in interface JsonReader<UUID>
      Throws:
      IOException