Class StringConverter
java.lang.Object
org.apache.sling.jcr.resource.internal.helper.StringConverter
- All Implemented Interfaces:
Converter
A converter for any object based on toString()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull BigDecimal
Convert to BigDecimal.@NotNull Boolean
Convert to boolean.@NotNull Byte
toByte()
Convert to Byte.@NotNull Calendar
Convert to Calendar.@NotNull Date
toDate()
Convert to Date.@NotNull Double
toDouble()
Convert to Double.@NotNull Float
toFloat()
Convert to Float.@NotNull Integer
Convert to Integer.@NotNull Long
toLong()
Convert to Long.@NotNull Short
toShort()
Convert to Short.toString()
@NotNull ZonedDateTime
Convert to ZonedDateTime.
-
Constructor Details
-
StringConverter
-
-
Method Details
-
toString
-
toLong
Description copied from interface:Converter
Convert to Long. -
toByte
Description copied from interface:Converter
Convert to Byte. -
toShort
Description copied from interface:Converter
Convert to Short. -
toInteger
Description copied from interface:Converter
Convert to Integer. -
toDouble
Description copied from interface:Converter
Convert to Double. -
toFloat
Description copied from interface:Converter
Convert to Float. -
toZonedDateTime
Description copied from interface:Converter
Convert to ZonedDateTime.- Specified by:
toZonedDateTime
in interfaceConverter
- Returns:
- Calendar representation of the converted value
-
toCalendar
Description copied from interface:Converter
Convert to Calendar.- Specified by:
toCalendar
in interfaceConverter
- Returns:
- Calendar representation of the converted value
- See Also:
-
toDate
Description copied from interface:Converter
Convert to Date. -
toBoolean
Description copied from interface:Converter
Convert to boolean. -
toBigDecimal
Description copied from interface:Converter
Convert to BigDecimal.- Specified by:
toBigDecimal
in interfaceConverter
- Returns:
- BigDecimal representation of the converted value
- See Also:
-