public class Jdk8DateTimeConverter extends DateConverter
Constructor and Description |
---|
Jdk8DateTimeConverter() |
Modifier and Type | Method and Description |
---|---|
protected <T> java.time.temporal.TemporalAccessor |
convertDateToTemporal(Class<T> type,
Date o) |
protected Calendar |
convertTemporalToCalendar(java.time.temporal.TemporalAccessor ta) |
protected <T> java.time.temporal.TemporalAccessor |
convertTemporalToTemporal(Class<T> type,
java.time.temporal.TemporalAccessor o) |
Class<?>[] |
getTypes()
Returns types handled by the converter.
|
java.time.ZoneId |
getZoneId() |
protected String |
internalConvertToString(Object o)
Returns the default "toString" result on provided Object.
|
protected <T> T |
internalConvertToType(Class<T> type,
Object o)
Handles conversion to an handled type.
|
addGlobalPattern, addSpecificPattern, dateToString, getDefaultFormat, getFormat, getGlobalpatterns, getLocale, getPreferredPattern, getSpecificpatterns, getTimeZone, removeGlobalPattern, removeSpecificPattern, setLocale, setPreferredPattern, setTimeZone
convertArrayToString, convertArrayToType, convertCollectionToString, convertCollectionToType, convertionException, convertionException, convertToString, convertToType, stringConversion, toString, typeConversion
protected String internalConvertToString(Object o) throws UtilsException
AbstractConverter
internalConvertToString
in class DateConverter
UtilsException
protected <T> T internalConvertToType(Class<T> type, Object o) throws UtilsException
AbstractConverter
internalConvertToType
in class DateConverter
UtilsException
protected Calendar convertTemporalToCalendar(java.time.temporal.TemporalAccessor ta)
protected <T> java.time.temporal.TemporalAccessor convertDateToTemporal(Class<T> type, Date o)
protected <T> java.time.temporal.TemporalAccessor convertTemporalToTemporal(Class<T> type, java.time.temporal.TemporalAccessor o)
public java.time.ZoneId getZoneId()
public Class<?>[] getTypes()
IConverter
getTypes
in interface IConverter
getTypes
in class DateConverter