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