|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.onemind.commons.java.util.ObjectUtils
Property utilities
Method Summary | |
static boolean |
toBool(java.lang.Object value,
boolean def)
Convert the object the boolean, return the default if it cannot be converted |
static double |
toDouble(java.lang.Object value,
double def)
Convert the object to double, or return the default if it cannot be converted |
static float |
toFloat(java.lang.Object value,
float def)
Convert the object to float, or return the default if it cannot be converted |
static int |
toInt(java.lang.Object value,
int def)
Convert the object to int, or return the default if it cannot be converted |
static long |
toLong(java.lang.Object value,
long def)
Convert the object to long, or return the default if it cannot be converted |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final boolean toBool(java.lang.Object value, boolean def)
value
- the valuedef
- the default
public static int toInt(java.lang.Object value, int def)
value
- the valuedef
- the default
public static long toLong(java.lang.Object value, long def)
value
- the valuedef
- the default
public static float toFloat(java.lang.Object value, float def)
value
- the valuedef
- the default
public static double toDouble(java.lang.Object value, double def)
value
- the valuedef
- the default
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |