net.sf.basedb.util.jep.convert
Class FloatConverter
java.lang.Object
net.sf.basedb.util.jep.convert.AbstractJepConversionFunction<Number>
net.sf.basedb.util.jep.convert.FloatConverter
- All Implemented Interfaces:
- JepConversionFunction<Number>
public class FloatConverter
- extends AbstractJepConversionFunction<Number>
Convert a Number
constant
to a Query API Expression
from the float value.
- Version:
- 2.4
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:08:14 +0200 (Thu, 11 Sep 2008) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FloatConverter
public FloatConverter()
toExpression
public Expression toExpression(Number f)
- Convert to expression by calling
Expressions.aFloat(float)
.
- Specified by:
toExpression
in interface JepConversionFunction<Number>
- Overrides:
toExpression
in class AbstractJepConversionFunction<Number>
- Parameters:
f
- The object to convert
- Returns:
- An expression or null