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