|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object diamondedge.util.Obj
public class Obj
Constructor Summary | |
---|---|
Obj()
|
Method Summary | |
---|---|
static int |
compare(Object o1,
Object o2)
Compares two Objects numerically or lexicographically depending on the datatypes. |
static int |
compare(Object o1,
Object o2,
boolean caseSensitive)
Compares two Objects numerically or lexicographically depending on the datatypes. |
static Number |
parseNumber(String str)
Return a Number instance by trying to parse the string in the following formats: Integer, number, percent, currency. |
static Object |
parseObject(Object val)
Attempts to parse the value into a Number, Boolean, Date in that order and returns the object. |
static boolean |
toBoolean(Object val)
|
static Date |
toDate(Object val)
|
static Date |
toDateNew(Object val)
|
static BigDecimal |
toDecimal(Object val)
|
static double |
toDouble(Object val)
|
static int |
toInt(Object val)
|
static long |
toLong(Object val)
|
static Number |
toNumber(Object val)
|
static String |
toString(Object val)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Obj()
Method Detail |
---|
public static int compare(Object o1, Object o2)
compare(Object,Object,boolean)
public static int compare(Object o1, Object o2, boolean caseSensitive)
return 0 if the objects are equal return a value > 0 if o1 is > than o2 return a value < 0 if o1 is < than o2
caseSensitive
- - if one of the objects is a String then use a case sensitive comparisonpublic static Number toNumber(Object val)
public static int toInt(Object val)
public static long toLong(Object val)
public static double toDouble(Object val)
public static BigDecimal toDecimal(Object val)
public static boolean toBoolean(Object val)
public static Date toDate(Object val)
public static Date toDateNew(Object val)
public static String toString(Object val)
public static final Number parseNumber(String str) throws ParseException
ParseException
public static final Object parseObject(Object val)
parseNumber(java.lang.String)
|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |