org.apache.commons.jexl.util
Class Coercion
java.lang.Object
org.apache.commons.jexl.util.Coercion
- public class Coercion
- extends java.lang.Object
Coercion utilities for the JSTL EL-like coercion.
- Author:
- Geir Magnusson Jr.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Coercion
public Coercion()
coerceBoolean
public static java.lang.Boolean coerceBoolean(java.lang.Object val)
coerceInteger
public static java.lang.Integer coerceInteger(java.lang.Object val)
throws java.lang.Exception
- Throws:
java.lang.Exception
coerceLong
public static java.lang.Long coerceLong(java.lang.Object val)
throws java.lang.Exception
- Throws:
java.lang.Exception
coerceDouble
public static java.lang.Double coerceDouble(java.lang.Object val)
throws java.lang.Exception
- Throws:
java.lang.Exception
isFloatingPoint
public static boolean isFloatingPoint(java.lang.Object o)
isNumberable
public static boolean isNumberable(java.lang.Object o)