Class PrimitiveSerializer.Short

java.lang.Object
org.djutils.data.serialization.PrimitiveSerializer.Short
All Implemented Interfaces:
TextSerializer<Short>
Enclosing class:
PrimitiveSerializer

public static class PrimitiveSerializer.Short
extends Object
implements TextSerializer<Short>
Serializer and deserializer for short.
  • Constructor Details

  • Method Details

    • serialize

      public String serialize​(Object value)
      Serialize a value to text in such a way that it can be deserialized with the corresponding deserializer.
      Specified by:
      serialize in interface TextSerializer<Short>
      Parameters:
      value - T; the value to serialize
      Returns:
      String; a string representation of the value that can later be deserialized
    • deserialize

      public Object deserialize​(String text)
      Deserialize a value from text that has been created with the corresponding serializer.
      Specified by:
      deserialize in interface TextSerializer<Short>
      Parameters:
      text - String; the string to deserialize
      Returns:
      T; an instance of the object created with the corresponding serializer