com.opensymphony.util
Class DataUtil

java.lang.Object
  extended bycom.opensymphony.util.DataUtil

public class DataUtil
extends Object

DOCUMENT ME!

Version:
$Revision: 1.1.1.1 $
Author:
$author$

Constructor Summary
DataUtil()
           
 
Method Summary
static boolean getBoolean(Boolean b)
          Returns the primitve representation of the object, false if the object is null
static byte getByte(Byte b)
          Returns the primitve representation of the object, 0 if the object is null
static double getDouble(Double d)
          Returns the primitve representation of the object, 0 if the object is null
static float getFloat(Float f)
          Returns the primitve representation of the object, 0 if the object is null
static int getInt(Integer i)
          Returns the primitve representation of the object, 0 if the object is null
static long getLong(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
 

Constructor Detail

DataUtil

public DataUtil()
Method Detail

getBoolean

public static boolean getBoolean(Boolean b)
Returns the primitve representation of the object, false if the object is null

Parameters:
b - - the object representation
Returns:
the primitive representation

getByte

public static byte getByte(Byte b)
Returns the primitve representation of the object, 0 if the object is null

Parameters:
b - - the object representation
Returns:
the primitive representation

getDouble

public static double getDouble(Double d)
Returns the primitve representation of the object, 0 if the object is null

Parameters:
d - - the object representation
Returns:
the primitive representation

getFloat

public static float getFloat(Float f)
Returns the primitve representation of the object, 0 if the object is null

Parameters:
f - - the object representation
Returns:
the primitive representation

getInt

public static int getInt(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(Long l)
Returns the primitve representation of the object, 0 if the object is null

Parameters:
l - - the object representation
Returns:
the primitive representation

OSCore Project Page