Class DateConverter
java.lang.Object
org.apache.sling.jcr.resource.internal.helper.NumberConverter
org.apache.sling.jcr.resource.internal.helper.DateConverter
- All Implemented Interfaces:
Converter
A converter for Date
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull CalendarConvert to Calendar.@NotNull DatetoDate()Convert to Date.toString()@NotNull ZonedDateTimeConvert to ZonedDateTime.Methods inherited from class org.apache.sling.jcr.resource.internal.helper.NumberConverter
toBigDecimal, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toShort
-
Constructor Details
-
DateConverter
-
-
Method Details
-
toZonedDateTime
Description copied from interface:ConverterConvert to ZonedDateTime.- Specified by:
toZonedDateTimein interfaceConverter- Overrides:
toZonedDateTimein classNumberConverter- Returns:
- Calendar representation of the converted value
-
toCalendar
Description copied from interface:ConverterConvert to Calendar.- Specified by:
toCalendarin interfaceConverter- Overrides:
toCalendarin classNumberConverter- Returns:
- Calendar representation of the converted value
- See Also:
-
toDate
Description copied from interface:ConverterConvert to Date.- Specified by:
toDatein interfaceConverter- Overrides:
toDatein classNumberConverter- Returns:
- Date representation of the converted value
- See Also:
-
toString
- Overrides:
toStringin classNumberConverter- See Also:
-