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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChronology, getChronologygetChronology, getChronology, getPartialValues, getPartialValuesstatic final DateConverter INSTANCE
public long getInstantMillis(java.lang.Object object,
Chronology chrono)
getInstantMillis in interface InstantConvertergetInstantMillis in class AbstractConverterobject - 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