Class StringConverter.DefaultConverter
- java.lang.Object
-
- cz.o2.proxima.direct.io.cassandra.StringConverter.DefaultConverter
-
- All Implemented Interfaces:
StringConverter<java.lang.String>
,java.io.Serializable
- Enclosing interface:
- StringConverter<T>
public static class StringConverter.DefaultConverter extends java.lang.Object implements StringConverter<java.lang.String>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cz.o2.proxima.direct.io.cassandra.StringConverter
StringConverter.DefaultConverter
-
-
Constructor Summary
Constructors Constructor Description DefaultConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString(java.lang.String what)
Convert type to string.java.lang.String
fromString(java.lang.String what)
Convert type from string.java.lang.String
max()
Retrieve maximal element.java.lang.String
min()
Retrieve minimal element
-
-
-
Method Detail
-
asString
public java.lang.String asString(java.lang.String what)
Description copied from interface:StringConverter
Convert type to string.- Specified by:
asString
in interfaceStringConverter<java.lang.String>
- Parameters:
what
- input type- Returns:
- string representation of what
-
fromString
@Nullable public java.lang.String fromString(java.lang.String what)
Description copied from interface:StringConverter
Convert type from string.- Specified by:
fromString
in interfaceStringConverter<java.lang.String>
- Parameters:
what
- string representation- Returns:
- the original object
-
max
public java.lang.String max()
Description copied from interface:StringConverter
Retrieve maximal element.- Specified by:
max
in interfaceStringConverter<java.lang.String>
- Returns:
- instance of maximal object
-
min
public java.lang.String min()
Description copied from interface:StringConverter
Retrieve minimal element- Specified by:
min
in interfaceStringConverter<java.lang.String>
- Returns:
- instance of minimal object
-
-