|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.type.AbstractType<T>
javax.rad.type.AbstractComparableType<T>
javax.rad.type.AbstractNumberType<T>
T
- the Number
type.public abstract class AbstractNumberType<T extends Number & Comparable<T>>
The AbstractNumberType
is the base implementation for all numeric types.
Field Summary | |
---|---|
protected T |
maxValue
The maximal allowed value. |
protected T |
minValue
The minimal allowed value. |
protected int |
precision
The precision. |
Fields inherited from interface javax.rad.type.IType |
---|
UNKNOWN_TYPE |
Constructor Summary | |
---|---|
AbstractNumberType()
|
Method Summary | |
---|---|
T |
getMaxValue()
Gets the maximal allowed value. |
T |
getMinValue()
Gets the minimal allowed value. |
int |
getPrecision()
Gets the precision. |
void |
setMaxValue(T pMaxValue)
Sets the maximal allowed value. |
void |
setMinValue(T pMinValue)
Sets the minimal allowed value. |
void |
setPrecision(int pPrecision)
Sets the precision. |
T |
validatedValueOf(Object pObject)
Converts the object to an Object which is an instance of type class. |
Methods inherited from class javax.rad.type.AbstractComparableType |
---|
compareTo |
Methods inherited from class javax.rad.type.AbstractType |
---|
equals, getTypeFromClass, getTypeFromObject, hashCode, registerType, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.rad.type.IType |
---|
getTypeClass |
Field Detail |
---|
protected T extends Number & Comparable<T> minValue
protected T extends Number & Comparable<T> maxValue
protected int precision
Constructor Detail |
---|
public AbstractNumberType()
Method Detail |
---|
public T validatedValueOf(Object pObject)
Object
which is an instance of type class.
validatedValueOf
in interface IType<T extends Number & Comparable<T>>
validatedValueOf
in class AbstractType<T extends Number & Comparable<T>>
pObject
- the Object
to convert
Object
which is an instance of type class.public T getMinValue()
public void setMinValue(T pMinValue)
pMinValue
- the minimal allowed value.public T getMaxValue()
public void setMaxValue(T pMaxValue)
pMaxValue
- the maximal allowed value.public int getPrecision()
public void setPrecision(int pPrecision)
pPrecision
- the precision.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |