|
||||||||||
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(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,
int 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. |
Methods inherited from class org.apache.commons.lang.ObjectUtils |
---|
appendIdentityToString, defaultIfNull, equals, hashCode, identityToString, max, min, toString, 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, int 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |