com.opensymphony.util
Class DataUtil
java.lang.Object
|
+--com.opensymphony.util.DataUtil
- public class DataUtil
- extends java.lang.Object
Method Summary |
static boolean |
getBoolean(java.lang.Boolean b)
Returns the primitve representation of the object, false if the object is null |
static byte |
getByte(java.lang.Byte b)
Returns the primitve representation of the object, 0 if the object is null |
static double |
getDouble(java.lang.Double d)
Returns the primitve representation of the object, 0 if the object is null |
static float |
getFloat(java.lang.Float f)
Returns the primitve representation of the object, 0 if the object is null |
static int |
getInt(java.lang.Integer i)
Returns the primitve representation of the object, 0 if the object is null |
static long |
getLong(java.lang.Long l)
Returns the primitve representation of the object, 0 if the object is null |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataUtil
public DataUtil()
getInt
public static int getInt(java.lang.Integer i)
- Returns the primitve representation of the object, 0 if the object is null
- Parameters:
i
- - the object representation- Returns:
- the primitive representation
getLong
public static long getLong(java.lang.Long l)
- Returns the primitve representation of the object, 0 if the object is null
- Parameters:
l
- - the object representation- Returns:
- the primitive representation
getFloat
public static float getFloat(java.lang.Float f)
- Returns the primitve representation of the object, 0 if the object is null
- Parameters:
f
- - the object representation- Returns:
- the primitive representation
getDouble
public static double getDouble(java.lang.Double d)
- Returns the primitve representation of the object, 0 if the object is null
- Parameters:
d
- - the object representation- Returns:
- the primitive representation
getByte
public static byte getByte(java.lang.Byte b)
- Returns the primitve representation of the object, 0 if the object is null
- Parameters:
b
- - the object representation- Returns:
- the primitive representation
getBoolean
public static boolean getBoolean(java.lang.Boolean b)
- Returns the primitve representation of the object, false if the object is null
- Parameters:
b
- - the object representation- Returns:
- the primitive representation