ch.panter.li.bi.asn.value
Class AsnReal
java.lang.Object
ch.panter.li.bi.asn.AsnValueBase
ch.panter.li.bi.asn.value.AsnSimpleValueBase
ch.panter.li.bi.asn.value.AsnObjectValueBase
ch.panter.li.bi.asn.value.AsnReal
- All Implemented Interfaces:
- DecimalValue, DecimalValueInfo, NumericalValueInfo, Validatable, AsnValue
public class AsnReal
- extends AsnObjectValueBase
- implements DecimalValue
AsnReal
public AsnReal()
AsnReal
public AsnReal(Float value)
AsnReal
public AsnReal(Double value)
AsnReal
public AsnReal(BigDecimal value)
AsnReal
public AsnReal(DecimalValue value)
AsnReal
public AsnReal(AsnType type)
AsnReal
public AsnReal(AsnReal copy)
copyAsnValue
public AsnReal copyAsnValue()
- Specified by:
copyAsnValue
in interface AsnValue
hasSameNumericalValue
public final boolean hasSameNumericalValue(DecimalValue compare)
- Specified by:
hasSameNumericalValue
in interface DecimalValueInfo
hasSameNumericalValue
public final boolean hasSameNumericalValue(DecimalValue compare,
double range)
- Specified by:
hasSameNumericalValue
in interface DecimalValueInfo
hasSameNumericalValue
public final boolean hasSameNumericalValue(Number compare)
- Specified by:
hasSameNumericalValue
in interface DecimalValueInfo
hasSameNumericalValue
public final boolean hasSameNumericalValue(Number compare,
double range)
- Specified by:
hasSameNumericalValue
in interface DecimalValueInfo
isZero
public final boolean isZero()
- Description copied from interface:
NumericalValueInfo
- Determines whether this instance has a 'zero' value.
- Specified by:
isZero
in interface NumericalValueInfo
- Returns:
- true if the value is non-null and has the zero content of its respective class
(Float, Double or BigDecimal).
isPositive
public final boolean isPositive()
- Description copied from interface:
NumericalValueInfo
- Determines whether this instance has a 'positive' value (not including zero).
- Specified by:
isPositive
in interface NumericalValueInfo
- Returns:
- true if the value is non-null and has a strictly positive content of its
respective class (Float, Double or BigDecimal).
isNegative
public final boolean isNegative()
- Description copied from interface:
NumericalValueInfo
- Determines whether this instance has a 'negative' value (not including zero).
- Specified by:
isNegative
in interface NumericalValueInfo
- Returns:
- true if the value is non-null and has a strictly negative content of its
respective class (Float, Double or BigDecimal).
isNegativeInfinity
public final boolean isNegativeInfinity()
- Specified by:
isNegativeInfinity
in interface DecimalValueInfo
isPositiveInfinity
public final boolean isPositiveInfinity()
- Specified by:
isPositiveInfinity
in interface DecimalValueInfo
isInfinity
public final boolean isInfinity()
- Specified by:
isInfinity
in interface DecimalValueInfo
isValidNumber
public final boolean isValidNumber()
- Specified by:
isValidNumber
in interface DecimalValueInfo
getValue
public final Number getValue()
- Specified by:
getValue
in interface NumericalValueInfo
validateValueObject
protected final void validateValueObject(Object value)
- Overrides:
validateValueObject
in class AsnObjectValueBase
setValue
public final void setValue(Float value)
- Specified by:
setValue
in interface DecimalValue
setValue
public final void setValue(Double value)
- Specified by:
setValue
in interface DecimalValue
setValue
public final void setValue(BigDecimal value)
- Specified by:
setValue
in interface DecimalValue
setValue
public final void setValue(DecimalValue value)
- Specified by:
setValue
in interface DecimalValue
assign
public void assign(DecimalValue other)
- Specified by:
assign
in interface DecimalValue
isBinary
public final boolean isBinary()
setBinary
public final void setBinary(boolean binary)
isEqualTo
protected boolean isEqualTo(Object compare)
- Overrides:
isEqualTo
in class AsnObjectValueBase
computeHashCode
protected int computeHashCode(int baseHash)
- Overrides:
computeHashCode
in class AsnObjectValueBase
Copyright 2007-2007 SourceForge. All Rights Reserved.