Package com.celeral.utils
Class StringCodec.Long2String
- java.lang.Object
-
- com.celeral.utils.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.celeral.utils.StringCodec
StringCodec.Boolean2String, StringCodec.Class2String<T>, StringCodec.Collection2String<T>, StringCodec.Enum2String<T extends java.lang.Enum<T>>, StringCodec.Integer2String, StringCodec.Long2String, StringCodec.Map2String<K,V>, StringCodec.Object2String<T>, StringCodec.Path2String, StringCodec.Short2String, StringCodec.String2String, StringCodec.URI2String
-
-
Constructor Summary
Constructors Constructor Description Long2String()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
fromString(java.lang.String string)
Given a string representation (typically from properties file) for an object , create object from it.java.lang.String
toString(java.lang.Long pojo)
Given a POJO, serialize it to a String object (typically to be stored in properties file).
-
-
-
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 interfaceStringCodec<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 interfaceStringCodec<java.lang.Long>
- Parameters:
pojo
- The object which needs to be serialized.- Returns:
- Serialized representation of pojo..
-
-