@Converter(generateBulkLoader=true) public final class ObjectConverter extends Object
Modifier and Type | Method and Description |
---|---|
static String |
fromCharArray(char[] value) |
static Iterable<?> |
iterable(Object value)
Creates an iterable over the value
|
static Iterator<?> |
iterator(Object value)
Creates an iterator over the value
|
static BigInteger |
toBigInteger(Object value)
Returns the converted value, or null if the value is null
|
static boolean |
toBool(Object value)
Converts the given value to a boolean, handling strings or Boolean objects; otherwise returning false if the
value could not be converted to a boolean
|
static Boolean |
toBoolean(Object value)
Converts the given value to a Boolean, handling strings or Boolean objects; otherwise returning null if the value
cannot be converted to a boolean
|
static Boolean |
toBoolean(String value) |
static Byte |
toByte(Number value)
Returns the converted value, or null if the value is null
|
static Byte |
toByte(String value) |
static char |
toChar(String value) |
static Character |
toCharacter(String value) |
static char[] |
toCharArray(String value) |
static Class<?> |
toClass(String value,
org.apache.camel.Exchange exchange)
Returns the converted value, or null if the value is null
|
static Double |
toDouble(Number value)
Returns the converted value, or null if the value is null
|
static Double |
toDouble(String value) |
static Float |
toFloat(Number value)
Returns the converted value, or null if the value is null
|
static Float |
toFloat(String value) |
static Integer |
toInteger(Number value)
Returns the converted value, or null if the value is null
|
static Integer |
toInteger(String value) |
static Long |
toLong(Number value)
Returns the converted value, or null if the value is null
|
static Long |
toLong(String value) |
static Number |
toNumber(String text) |
static Short |
toShort(Number value)
Returns the converted value, or null if the value is null
|
static Short |
toShort(String value) |
static String |
toString(Boolean value) |
static String |
toString(Integer value) |
static String |
toString(Long value) |
static String |
toString(StringBuffer value) |
static String |
toString(StringBuilder value) |
@Converter(order=1) public static boolean toBool(Object value)
@Converter(order=2) public static Boolean toBoolean(Object value)
@Converter(order=3) public static Iterator<?> iterator(Object value)
@Converter(order=4) public static Iterable<?> iterable(Object value)
@Converter(order=5, allowNull=true) public static Byte toByte(Number value)
@Converter(order=7) public static char[] toCharArray(String value)
@Converter(order=9) public static char toChar(String value)
@Converter(order=10) public static String fromCharArray(char[] value)
@Converter(order=11) public static Class<?> toClass(String value, org.apache.camel.Exchange exchange)
@Converter(order=12, allowNull=true) public static Short toShort(Number value)
@Converter(order=14, allowNull=true) public static Integer toInteger(Number value)
@Converter(order=16, allowNull=true) public static Long toLong(Number value)
@Converter(order=18, allowNull=true) public static BigInteger toBigInteger(Object value)
@Converter(order=19) public static Float toFloat(Number value)
@Converter(order=21) public static Double toDouble(Number value)
@Converter(order=26) public static String toString(StringBuffer value)
@Converter(order=27) public static String toString(StringBuilder value)
Apache Camel