Class KeySerializer.UuidKey

java.lang.Object
co.crystaldev.alpinecore.framework.storage.KeySerializer.UuidKey
All Implemented Interfaces:
KeySerializer<UUID,String>
Enclosing interface:
KeySerializer<T1,T2>

public static final class KeySerializer.UuidKey extends Object implements KeySerializer<UUID,String>
Serializer for UUIDs
Since:
0.1.0
  • Constructor Details

    • UuidKey

      public UuidKey()
  • Method Details

    • serialize

      public String serialize(UUID input)
      Description copied from interface: KeySerializer
      Serializes the "advanced" object into a "simple" key type.
      Specified by:
      serialize in interface KeySerializer<UUID,String>
      Parameters:
      input - The advanced object
      Returns:
      The key representation
    • deserialize

      public UUID deserialize(String input)
      Description copied from interface: KeySerializer
      Deserializes the "simple" key object into an "advanced" object type.
      Specified by:
      deserialize in interface KeySerializer<UUID,String>
      Parameters:
      input - The key object
      Returns:
      The advanced representation