| org.mule.util.ObjectUtils
ObjectUtils | public class ObjectUtils extends org.apache.commons.lang.ObjectUtils (Code) | | |
Field Summary | |
final protected static Log | logger |
Method Summary | |
public static boolean | getBoolean(Object answer, boolean defaultValue) Gets a boolean from a value in a null-safe manner. | public static byte | getByte(Object answer, byte defaultValue) Gets a byte from a value in a null-safe manner. | public static double | getDouble(Object answer, double defaultValue) Gets a double from a value in a null-safe manner. | public static float | getFloat(Object answer, float defaultValue) Gets a float from a value in a null-safe manner. | public static int | getInt(Object answer, int defaultValue) Gets a int from a value in a null-safe manner. | public static long | getLong(Object answer, long defaultValue) Gets a long from a value in a null-safe manner. | public static short | getShort(Object answer, short defaultValue) Gets a short from a value in a null-safe manner. | public static String | getString(Object answer, String defaultValue) Gets a String from a value in a null-safe manner. | public static String | identityToShortString(Object obj) Like
ObjectUtils.identityToString(Object) but without the object's full package
name. |
logger | final protected static Log logger(Code) | | logger used by this class
|
getBoolean | public static boolean getBoolean(Object answer, boolean defaultValue)(Code) | | Gets a boolean from a value in a null-safe manner.
Parameters: answer - the object value Parameters: defaultValue - the default to use if null or of incorrect type the value as a boolean, or the defaultValue |
getByte | public static byte getByte(Object answer, byte defaultValue)(Code) | | Gets a byte from a value in a null-safe manner.
Parameters: answer - the object value Parameters: defaultValue - the default to use if null or of incorrect type the value as a byte, or the defaultValue |
getDouble | public static double getDouble(Object answer, double defaultValue)(Code) | | Gets a double from a value in a null-safe manner.
Parameters: answer - the object value Parameters: defaultValue - the default to use if null or of incorrect type the value as a double, or the defaultValue |
getFloat | public static float getFloat(Object answer, float defaultValue)(Code) | | Gets a float from a value in a null-safe manner.
Parameters: answer - the object value Parameters: defaultValue - the default to use if null or of incorrect type the value as a float, or the defaultValue |
getInt | public static int getInt(Object answer, int defaultValue)(Code) | | Gets a int from a value in a null-safe manner.
Parameters: answer - the object value Parameters: defaultValue - the default to use if null or of incorrect type the value as a int, or the defaultValue |
getLong | public static long getLong(Object answer, long defaultValue)(Code) | | Gets a long from a value in a null-safe manner.
Parameters: answer - the object value Parameters: defaultValue - the default to use if null or of incorrect type the value as a long, or the defaultValue |
getShort | public static short getShort(Object answer, short defaultValue)(Code) | | Gets a short from a value in a null-safe manner.
Parameters: answer - the object value Parameters: defaultValue - the default to use if null or of incorrect type the value as a short, or the defaultValue |
getString | public static String getString(Object answer, String defaultValue)(Code) | | Gets a String from a value in a null-safe manner.
Parameters: answer - the object value Parameters: defaultValue - the default to use if null or of incorrect type the value as a String, or the defaultValue |
identityToShortString | public static String identityToShortString(Object obj)(Code) | | Like
ObjectUtils.identityToString(Object) but without the object's full package
name.
Parameters: obj - the object for which the identity description is to be generated the object's identity description in the form of"ClassName@IdentityCode" or "null" if the argument was null. |
|
|