|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.lang.ObjectUtils org.mule.util.ObjectUtils
public class ObjectUtils
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.lang.ObjectUtils |
---|
ObjectUtils.Null |
Field Summary | |
---|---|
protected static Log |
logger
logger used by this class |
Fields inherited from class org.apache.commons.lang.ObjectUtils |
---|
NULL |
Constructor Summary | |
---|---|
ObjectUtils()
|
Method Summary | |
---|---|
static boolean |
getBoolean(Object answer,
Boolean defaultValue)
Gets a boolean from a value in a null-safe manner. |
static byte |
getByte(Object answer,
Byte defaultValue)
Gets a byte from a value in a null-safe manner. |
static double |
getDouble(Object answer,
Double defaultValue)
Gets a double from a value in a null-safe manner. |
static float |
getFloat(Object answer,
Float defaultValue)
Gets a float from a value in a null-safe manner. |
static int |
getInt(Object answer,
Integer defaultValue)
Gets a int from a value in a null-safe manner. |
static long |
getLong(Object answer,
Long defaultValue)
Gets a long from a value in a null-safe manner. |
static short |
getShort(Object answer,
Short defaultValue)
Gets a short from a value in a null-safe manner. |
static String |
getString(Object answer,
String defaultValue)
Gets a String from a value in a null-safe manner. |
static String |
identityToShortString(Object obj)
Like ObjectUtils.identityToString(Object) but without the object's full package
name. |
static String |
toString(Object obj)
|
Methods inherited from class org.apache.commons.lang.ObjectUtils |
---|
appendIdentityToString, defaultIfNull, equals, hashCode, identityToString, identityToString, max, min, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Log logger
Constructor Detail |
---|
public ObjectUtils()
Method Detail |
---|
public static String identityToShortString(Object obj)
ObjectUtils.identityToString(Object)
but without the object's full package
name.
obj
- the object for which the identity description is to be generated
public static String getString(Object answer, String defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static boolean getBoolean(Object answer, Boolean defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static byte getByte(Object answer, Byte defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static short getShort(Object answer, Short defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static int getInt(Object answer, Integer defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static long getLong(Object answer, Long defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static float getFloat(Object answer, Float defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static double getDouble(Object answer, Double defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static String toString(Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |