public abstract static class Conversions.Converter extends Object
Converter.toString().| Constructor and Description |
|---|
Converter() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.jackrabbit.oak.api.Blob |
toBinary()
Convert to binary.
|
boolean |
toBoolean()
Convert to boolean.
|
Calendar |
toCalendar()
Convert to date.
|
String |
toDate()
Convert to date.
|
BigDecimal |
toDecimal()
Convert to decimal.
|
double |
toDouble()
Convert to double.
|
long |
toLong()
Convert to long.
|
abstract String |
toString()
Convert to string
|
public abstract String toString()
public org.apache.jackrabbit.oak.api.Blob toBinary()
StringBasedBlob.public long toLong()
Long.parseLong(String).NumberFormatExceptionpublic double toDouble()
Double.parseDouble(String).NumberFormatExceptionpublic Calendar toCalendar()
ISO8601.parse(String).IllegalArgumentException - if the string cannot be parsed into a datepublic String toDate()
toCalendar()
and returns the ISO8601.format(Calendar) value of the calendar.IllegalArgumentException - if the string cannot be parsed into a datepublic boolean toBoolean()
Boolean.parseBoolean(String).public BigDecimal toDecimal()
new BigDecimal(String).NumberFormatExceptionCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.