public class ValueOf
extends java.lang.Object
Constructor and Description |
---|
ValueOf() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
to(java.lang.Object o,
T defaultValue) |
static boolean |
toBoolean(java.lang.Object o) |
static boolean |
toBoolean(java.lang.Object o,
boolean defaultValue) |
static double |
toDouble(java.lang.Object o) |
static double |
toDouble(java.lang.Object o,
int defaultValue) |
static float |
toFloat(java.lang.Object o) |
static float |
toFloat(java.lang.Object o,
long defaultValue) |
static int |
toInt(java.lang.Object o) |
static int |
toInt(java.lang.Object o,
int defaultValue) |
static long |
toLong(java.lang.Object o) |
static long |
toLong(java.lang.Object o,
long defaultValue) |
static java.lang.String |
toString(java.lang.Object o) |
public static java.lang.String toString(java.lang.Object o)
public static double toDouble(java.lang.Object o)
public static double toDouble(java.lang.Object o, int defaultValue)
public static long toLong(java.lang.Object o, long defaultValue)
public static long toLong(java.lang.Object o)
public static float toFloat(java.lang.Object o, long defaultValue)
public static float toFloat(java.lang.Object o)
public static int toInt(java.lang.Object o, int defaultValue)
public static int toInt(java.lang.Object o)
public static boolean toBoolean(java.lang.Object o)
public static boolean toBoolean(java.lang.Object o, boolean defaultValue)
public static <T> T to(java.lang.Object o, T defaultValue)