javax.rad.type
Class DecimalType
java.lang.Object
javax.rad.type.AbstractType<T>
javax.rad.type.AbstractComparableType<T>
javax.rad.type.AbstractNumberType<BigDecimal>
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.
Constructor Summary |
DecimalType()
Constructs a new DecimalType . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecimalType
public DecimalType()
- Constructs a new
DecimalType
.
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.