Class ZonedDateTimeConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<T>
-
- org.apache.wicket.util.convert.converter.AbstractJavaTimeConverter<ZonedDateTime>
-
- org.apache.wicket.util.convert.converter.ZonedDateTimeConverter
-
- All Implemented Interfaces:
Serializable
,IConverter<ZonedDateTime>
,IClusterable
public class ZonedDateTimeConverter extends AbstractJavaTimeConverter<ZonedDateTime>
Converts toZonedDateTime
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ZonedDateTimeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ZonedDateTime
createTemporal(TemporalAccessor temporalAccessor)
Creates a new instance of D out of the passed date(time) as longprotected DateTimeFormatter
getDateTimeFormatter()
protected Class<ZonedDateTime>
getTargetType()
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractJavaTimeConverter
convertToObject, convertToString, getDateTimeFormatter
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
newConversionException, parse
-
-
-
-
Constructor Detail
-
ZonedDateTimeConverter
public ZonedDateTimeConverter()
-
-
Method Detail
-
getTargetType
protected Class<ZonedDateTime> getTargetType()
- Specified by:
getTargetType
in classAbstractConverter<ZonedDateTime>
- Returns:
- The target type of this type converter
-
createTemporal
protected ZonedDateTime createTemporal(TemporalAccessor temporalAccessor)
Description copied from class:AbstractJavaTimeConverter
Creates a new instance of D out of the passed date(time) as long- Specified by:
createTemporal
in classAbstractJavaTimeConverter<ZonedDateTime>
- Parameters:
temporalAccessor
- the date(time) in millis since Epoch- Returns:
- a new instance of the specific type D
-
getDateTimeFormatter
protected DateTimeFormatter getDateTimeFormatter()
- Specified by:
getDateTimeFormatter
in classAbstractJavaTimeConverter<ZonedDateTime>
-
-