final class DateConverter extends AbstractConverter implements InstantConverter, PartialConverter
Modifier and Type | Field and Description |
---|---|
(package private) static DateConverter |
INSTANCE
Singleton instance.
|
Modifier | Constructor and Description |
---|---|
protected |
DateConverter()
Restricted constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getInstantMillis(java.lang.Object object,
Chronology chrono)
Gets the millis, which is the Date millis value.
|
java.lang.Class<?> |
getSupportedType()
Returns Date.class.
|
getChronology, getChronology, getPartialValues, getPartialValues, getPeriodType, isReadableInterval, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChronology, getChronology
getChronology, getChronology, getPartialValues, getPartialValues
static final DateConverter INSTANCE
public long getInstantMillis(java.lang.Object object, Chronology chrono)
getInstantMillis
in interface InstantConverter
getInstantMillis
in class AbstractConverter
object
- the Date to convert, must not be nullchrono
- the non-null result of getChronologyjava.lang.NullPointerException
- if the object is nulljava.lang.ClassCastException
- if the object is an invalid typepublic java.lang.Class<?> getSupportedType()
getSupportedType
in interface Converter