|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.util.ConversionUtil
public final class ConversionUtil
A collection of static conversion utility methods.
Method Summary | |
---|---|
static BigDecimal |
toBigDecimal(Object object)
|
static boolean |
toBoolean(Object object)
|
static Comparable |
toComparable(Object object)
Attempts to convert an object to Comparable instance. |
static int |
toInt(Object object,
int defaultValue)
|
static String |
toString(Object object)
Attempts to convert an object to Comparable instance. |
static Object |
toUpperCase(Object object)
Attempts to convert an object to an uppercase string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int toInt(Object object, int defaultValue)
public static boolean toBoolean(Object object)
public static BigDecimal toBigDecimal(Object object)
public static Comparable toComparable(Object object)
public static String toString(Object object)
public static Object toUpperCase(Object object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |