org.apache.commons.jexl.util
Class Coercion

java.lang.Object
  extended byorg.apache.commons.jexl.util.Coercion

public class Coercion
extends Object

Coercion utilities for the JSTL EL-like coercion.


Constructor Summary
Coercion()
           
 
Method Summary
static Boolean coerceBoolean(Object val)
           
static Double coerceDouble(Object val)
           
static Integer coerceInteger(Object val)
           
static Long coerceLong(Object val)
           
static boolean isFloatingPoint(Object o)
           
static boolean isNumberable(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Coercion

public Coercion()
Method Detail

coerceBoolean

public static Boolean coerceBoolean(Object val)

coerceInteger

public static Integer coerceInteger(Object val)
                             throws Exception
Throws:
Exception

coerceLong

public static Long coerceLong(Object val)
                       throws Exception
Throws:
Exception

coerceDouble

public static Double coerceDouble(Object val)
                           throws Exception
Throws:
Exception

isFloatingPoint

public static boolean isFloatingPoint(Object o)

isNumberable

public static boolean isNumberable(Object o)


Copyright © 2003-2005 The Apache Software Foundation. All Rights Reserved.