| java.lang.Object org.apache.commons.jexl.util.Coercion
Coercion | public class Coercion (Code) | | Coercion utilities for the JSTL EL-like coercion.
since: 1.0 author: Geir Magnusson Jr. |
coerceBoolean | public static Boolean coerceBoolean(Object val)(Code) | | Coerce to a Boolean.
Parameters: val - Object to be coerced. The Boolean coerced value, or null if none possible. |
coerceDouble | public static Double coerceDouble(Object val) throws Exception(Code) | | Coerce to a Double.
Parameters: val - Object to be coerced. The Double coerced value. throws: Exception - If Double coercion fails. |
coerceInteger | public static Integer coerceInteger(Object val) throws Exception(Code) | | Coerce to a Integer.
Parameters: val - Object to be coerced. The Integer coerced value. throws: Exception - If Integer coercion fails. |
coerceLong | public static Long coerceLong(Object val) throws Exception(Code) | | Coerce to a Long.
Parameters: val - Object to be coerced. The Long coerced value. throws: Exception - If Long coercion fails. |
isFloatingPoint | public static boolean isFloatingPoint(Object o)(Code) | | Is Object a floating point number.
Parameters: o - Object to be analyzed. true if it is a Float or a Double. |
isNumberable | public static boolean isNumberable(Object o)(Code) | | Is Object a whole number.
Parameters: o - Object to be analyzed. true if Integer, Long, Byte, Short or Character. |
|
|