javax.rad.type
Class DecimalType

java.lang.Object
  extended by javax.rad.type.AbstractType<T>
      extended by javax.rad.type.AbstractComparableType<T>
          extended by javax.rad.type.AbstractNumberType<BigDecimal>
              extended by javax.rad.type.DecimalType
All Implemented Interfaces:
IType<BigDecimal>

public class DecimalType
extends AbstractNumberType<BigDecimal>

The DecimalType is a platform independent definition of a decimal.


Field Summary
 
Fields inherited from class javax.rad.type.AbstractNumberType
maxValue, minValue, precision
 
Fields inherited from interface javax.rad.type.IType
UNKNOWN_TYPE
 
Constructor Summary
DecimalType()
          Constructs a new DecimalType.
 
Method Summary
 boolean equals(BigDecimal pObject1, Object pObject2)
          Returns true, if the two objects are equal.
 Class<BigDecimal> getTypeClass()
          Returns the class used by this type.
 BigDecimal valueOf(Object pObject)
          Converts the object to an Object which is an instance of type class.
 
Methods inherited from class javax.rad.type.AbstractNumberType
getMaxValue, getMinValue, getPrecision, setMaxValue, setMinValue, setPrecision, validatedValueOf
 
Methods inherited from class javax.rad.type.AbstractComparableType
compareTo
 
Methods inherited from class javax.rad.type.AbstractType
getTypeFromClass, getTypeFromObject, hashCode, registerType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecimalType

public DecimalType()
Constructs a new DecimalType.

Method Detail

getTypeClass

public Class<BigDecimal> getTypeClass()
Returns the class used by this type.

Returns:
the class used by this type.

valueOf

public BigDecimal valueOf(Object pObject)
Converts the object to an Object which is an instance of type class.

Specified by:
valueOf in interface IType<BigDecimal>
Overrides:
valueOf in class AbstractType<BigDecimal>
Parameters:
pObject - the Object to convert
Returns:
the Object which is an instance of type class.

equals

public boolean equals(BigDecimal pObject1,
                      Object pObject2)
Returns true, if the two objects are equal.

Specified by:
equals in interface IType<BigDecimal>
Overrides:
equals in class AbstractType<BigDecimal>
Parameters:
pObject1 - the first object.
pObject2 - the second object.
Returns:
true, if the two objects are equal.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.