Class LocalDateTimeConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<T>
-
- org.apache.wicket.util.convert.converter.AbstractJavaTimeConverter<LocalDateTime>
-
- org.apache.wicket.util.convert.converter.LocalDateTimeConverter
-
- All Implemented Interfaces:
Serializable
,IConverter<LocalDateTime>
,IClusterable
public class LocalDateTimeConverter extends AbstractJavaTimeConverter<LocalDateTime>
Converts from Object toLocalDateTime
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalDateTimeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LocalDateTime
createTemporal(TemporalAccessor temporalAccessor)
Creates a new instance of D out of the passed date(time) as longprotected DateTimeFormatter
getDateTimeFormatter()
protected Class<LocalDateTime>
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
-
LocalDateTimeConverter
public LocalDateTimeConverter()
-
-
Method Detail
-
getTargetType
protected Class<LocalDateTime> getTargetType()
- Specified by:
getTargetType
in classAbstractConverter<LocalDateTime>
- Returns:
- The target type of this type converter
-
createTemporal
protected LocalDateTime 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<LocalDateTime>
- 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<LocalDateTime>
-
-