|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(java.lang.Object answer,
boolean defaultValue)
Gets a boolean from a value in a null-safe manner. |
static byte |
getByte(java.lang.Object answer,
byte defaultValue)
Gets a byte from a value in a null-safe manner. |
static double |
getDouble(java.lang.Object answer,
double defaultValue)
Gets a double from a value in a null-safe manner. |
static float |
getFloat(java.lang.Object answer,
float defaultValue)
Gets a float from a value in a null-safe manner. |
static int |
getInt(java.lang.Object answer,
int defaultValue)
Gets a int from a value in a null-safe manner. |
static long |
getLong(java.lang.Object answer,
long defaultValue)
Gets a long from a value in a null-safe manner. |
static short |
getShort(java.lang.Object answer,
short defaultValue)
Gets a short from a value in a null-safe manner. |
static java.lang.String |
getString(java.lang.Object answer,
java.lang.String defaultValue)
Gets a String from a value in a null-safe manner. |
static java.lang.String |
identityToShortString(java.lang.Object obj)
Like ObjectUtils.identityToString(Object) but without the object's full package
name. |
static java.lang.String |
toString(java.lang.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 java.lang.String identityToShortString(java.lang.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 java.lang.String getString(java.lang.Object answer, java.lang.String defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static boolean getBoolean(java.lang.Object answer, boolean defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static byte getByte(java.lang.Object answer, byte defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static short getShort(java.lang.Object answer, short defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static int getInt(java.lang.Object answer, int defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static long getLong(java.lang.Object answer, long defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static float getFloat(java.lang.Object answer, float defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static double getDouble(java.lang.Object answer, double defaultValue)
answer
- the object valuedefaultValue
- the default to use if null or of incorrect type
public static java.lang.String toString(java.lang.Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |