@Converter public final class ObjectConverter extends Object
Modifier and Type | Method and Description |
---|---|
static String |
fromCharArray(char[] value) |
static boolean |
isCollection(Object value)
Deprecated.
not in use
|
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(Object value)
Returns the converted value, or null if the value is null
|
static char |
toChar(String value) |
static Character |
toCharacter(String value) |
static char[] |
toCharArray(String value) |
static Class<?> |
toClass(Object value,
Exchange exchange)
Returns the converted value, or null if the value is null
|
static Double |
toDouble(Object value)
Returns the converted value, or null if the value is null
|
static Double |
toDouble(String value) |
static Float |
toFloat(Object value)
Returns the converted value, or null if the value is null
|
static Float |
toFloat(String value) |
static Integer |
toInteger(Object value)
Returns the converted value, or null if the value is null
|
static Integer |
toInteger(String value) |
static Long |
toLong(Object value)
Returns the converted value, or null if the value is null
|
static Long |
toLong(String value) |
static Short |
toShort(Object value)
Returns the converted value, or null if the value is null
|
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) |
@Deprecated public static boolean isCollection(Object value)
@Converter public static boolean toBool(Object value)
@Converter public static Boolean toBoolean(Object value)
@Converter public static Iterator<?> iterator(Object value)
@Converter public static Iterable<?> iterable(Object value)
@Converter public static Byte toByte(Object value)
@Converter public static char[] toCharArray(String value)
@Converter public static Character toCharacter(String value)
@Converter public static char toChar(String value)
@Converter public static String fromCharArray(char[] value)
@Converter public static Class<?> toClass(Object value, Exchange exchange)
@Converter public static Short toShort(Object value)
@Converter public static Integer toInteger(Object value)
@Converter public static Long toLong(Object value)
@Converter public static BigInteger toBigInteger(Object value)
@Converter public static Float toFloat(Object value)
@Converter public static Double toDouble(Object value)
@Converter public static String toString(Integer value)
@Converter public static String toString(Long value)
@Converter public static String toString(Boolean value)
@Converter public static String toString(StringBuffer value)
@Converter public static String toString(StringBuilder value)
@Converter public static Integer toInteger(String value)
@Converter public static Long toLong(String value)
@Converter public static Float toFloat(String value)
@Converter public static Double toDouble(String value)
@Converter public static Boolean toBoolean(String value)
Apache Camel