FileDocCategorySizeDatePackage
NumericType.javaAPI DocGlassfish v2 API3032Fri May 04 22:35:08 BST 2007com.sun.jdo.spi.persistence.support.sqlstore.query.util.type

NumericType

public abstract class NumericType extends PrimitiveType implements NumberType
This class is the super class for all integral and floating point types.
author
Michael Bouschen
version
0.1

Fields Summary
Constructors Summary
public NumericType(String name, Class clazz, int enumType)

        super(name, clazz, enumType);
    
Methods Summary
public abstract java.lang.NumbergetValue(java.lang.Number value)
Converts the specified value into a value of this numeric type. E.g. an Integer is converted into a Double, if this represents the numeric type double.

param
value value to be converted
return
converted value

public booleanisOrderable()
A numeric type defines an ordering.

        return true;
    
public abstract java.lang.Numbernegate(java.lang.Number value)
Returns -value.

param
value value to be negated
return
-value