|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.jexl.util.Coercion
Coercion utilities for the JSTL EL-like coercion.
Constructor Summary | |
---|---|
Coercion()
|
Method Summary | |
---|---|
static Boolean |
coerceBoolean(Object val)
Coerce to a Boolean. |
static Double |
coerceDouble(Object val)
Coerce to a Double. |
static Integer |
coerceInteger(Object val)
Coerce to a Integer. |
static Long |
coerceLong(Object val)
Coerce to a Long. |
static boolean |
isFloatingPoint(Object o)
Is Object a floating point number. |
static boolean |
isNumberable(Object o)
Is Object a whole number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Coercion()
Method Detail |
public static Boolean coerceBoolean(Object val)
val
- Object to be coerced.
public static Integer coerceInteger(Object val) throws Exception
val
- Object to be coerced.
Exception
- If Integer coercion fails.public static Long coerceLong(Object val) throws Exception
val
- Object to be coerced.
Exception
- If Long coercion fails.public static Double coerceDouble(Object val) throws Exception
val
- Object to be coerced.
Exception
- If Double coercion fails.public static boolean isFloatingPoint(Object o)
o
- Object to be analyzed.
public static boolean isNumberable(Object o)
o
- Object to be analyzed.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |