Class DateToLongConverter
- java.lang.Object
-
- cz.o2.proxima.direct.io.cassandra.DateToLongConverter
-
- All Implemented Interfaces:
StringConverter<java.util.Date>
,java.io.Serializable
public class DateToLongConverter extends java.lang.Object implements StringConverter<java.util.Date>
Represent aDate
withString
representation of epoch millis.- 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 DateToLongConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString(java.util.Date what)
Convert type to string.java.util.Date
fromString(java.lang.String what)
Convert type from string.java.util.Date
max()
Retrieve maximal element.java.util.Date
min()
Retrieve minimal element
-
-
-
Method Detail
-
asString
public java.lang.String asString(java.util.Date what)
Description copied from interface:StringConverter
Convert type to string.- Specified by:
asString
in interfaceStringConverter<java.util.Date>
- Parameters:
what
- input type- Returns:
- string representation of what
-
fromString
@Nullable public java.util.Date fromString(java.lang.String what)
Description copied from interface:StringConverter
Convert type from string.- Specified by:
fromString
in interfaceStringConverter<java.util.Date>
- Parameters:
what
- string representation- Returns:
- the original object
-
max
public java.util.Date max()
Description copied from interface:StringConverter
Retrieve maximal element.- Specified by:
max
in interfaceStringConverter<java.util.Date>
- Returns:
- instance of maximal object
-
min
public java.util.Date min()
Description copied from interface:StringConverter
Retrieve minimal element- Specified by:
min
in interfaceStringConverter<java.util.Date>
- Returns:
- instance of minimal object
-
-