Class UUIDTypeAdapter

java.lang.Object
com.google.gson.TypeAdapter<UUID>
valorless.valorlessutils.uuid.UUIDTypeAdapter

public class UUIDTypeAdapter extends com.google.gson.TypeAdapter<UUID>
  • Constructor Details

    • UUIDTypeAdapter

      public UUIDTypeAdapter()
  • Method Details

    • write

      public void write(com.google.gson.stream.JsonWriter out, UUID value) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<UUID>
      Throws:
      IOException
    • read

      public UUID read(com.google.gson.stream.JsonReader in) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<UUID>
      Throws:
      IOException
    • fromUUID

      public static String fromUUID(UUID value)
    • fromString

      public static UUID fromString(String input)