|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.converter.ObjectConverter
public final class ObjectConverter
Some core java.lang based Type Converters
Method Summary | |
---|---|
static String |
fromCharArray(char[] value)
|
static boolean |
isCollection(Object value)
|
static Iterator |
iterator(Object value)
Deprecated. use ObjectHelper.createIterator(Object) . Will be removed in Camel 2.0. |
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(Boolean value)
Returns the boolean value, or null if the value is null |
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 Byte |
toByte(Object value)
Returns the converted value, or null if the value is null |
static byte[] |
toByteArray(String value)
|
static char[] |
toCharArray(String value)
|
static Double |
toDouble(Object value)
Returns the converted value, or null if the value is null |
static Float |
toFloat(Object value)
Returns the converted value, or null if the value is null |
static Integer |
toInteger(Object value)
Returns the converted value, or null if the value is null |
static Long |
toLong(Object value)
Returns the converted value, or null if the value is null |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isCollection(Object value)
@Deprecated public static Iterator iterator(Object value)
ObjectHelper.createIterator(Object)
. Will be removed in Camel 2.0.
public static boolean toBool(Object value)
public static Boolean toBoolean(Object value)
public static Boolean toBoolean(Boolean value)
public static Byte toByte(Object value)
public static byte[] toByteArray(String value)
public static char[] toCharArray(String value)
public static String fromCharArray(char[] value)
public static Short toShort(Object value)
public static Integer toInteger(Object value)
public static Long toLong(Object value)
public static Float toFloat(Object value)
public static Double toDouble(Object value)
public static String toString(Integer value)
public static String toString(Long value)
public static String toString(Boolean value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |