Class StringCodec.Long2String

  • All Implemented Interfaces:
    StringCodec<java.lang.Long>, java.io.Serializable
    Enclosing interface:
    StringCodec<T>

    public static class StringCodec.Long2String
    extends java.lang.Object
    implements StringCodec<java.lang.Long>, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • Long2String

        public Long2String()
    • Method Detail

      • fromString

        public java.lang.Long fromString​(java.lang.String string)
        Description copied from interface: StringCodec
        Given a string representation (typically from properties file) for an object , create object from it.
        Specified by:
        fromString in interface StringCodec<java.lang.Long>
        Parameters:
        string - Type of the POJO which is created from String representation.
        Returns:
        POJO obtained as a result of deserialization
      • toString

        public java.lang.String toString​(java.lang.Long pojo)
        Description copied from interface: StringCodec
        Given a POJO, serialize it to a String object (typically to be stored in properties file).
        Specified by:
        toString in interface StringCodec<java.lang.Long>
        Parameters:
        pojo - The object which needs to be serialized.
        Returns:
        Serialized representation of pojo..