public class DataUtil
extends java.lang.Object
Constructor and Description |
---|
DataUtil() |
Modifier and Type | Method and Description |
---|---|
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
|
public static boolean getBoolean(java.lang.Boolean b)
b
- - the object representationpublic static byte getByte(java.lang.Byte b)
b
- - the object representationpublic static double getDouble(java.lang.Double d)
d
- - the object representationpublic static float getFloat(java.lang.Float f)
f
- - the object representationpublic static int getInt(java.lang.Integer i)
i
- - the object representationpublic static long getLong(java.lang.Long l)
l
- - the object representation