NumericWrapperClassTypepublic class NumericWrapperClassType extends WrapperClassType implements NumberType
Constructors Summary |
---|
public NumericWrapperClassType(String name, Class clazz, int enumType, PrimitiveType primitiveType, TypeTable typetab)
super(name, clazz, enumType, primitiveType, typetab);
|
Methods Summary |
---|
public java.lang.Number | getValue(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.
return ((NumericType)primitiveType).getValue(value);
| public boolean | isOrderable()A numeric wrapper class type defines an ordering.
return true;
| public java.lang.Number | negate(java.lang.Number value)Returns -value.
return ((NumericType)primitiveType).negate(value);
|
|