public class ConversionUtil extends Object
Modifier and Type | Method and Description |
---|---|
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 long |
toLong(Object object,
long 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.
|
public static int toInt(Object object, int defaultValue)
public static long toLong(Object object, long 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)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.