ch.panter.li.bi.asn.value
Class AsnReal

java.lang.Object
  extended by ch.panter.li.bi.asn.AsnValueBase
      extended by ch.panter.li.bi.asn.value.AsnSimpleValueBase
          extended by ch.panter.li.bi.asn.value.AsnObjectValueBase
              extended by ch.panter.li.bi.asn.value.AsnReal
All Implemented Interfaces:
DecimalValue, DecimalValueInfo, NumericalValueInfo, Validatable, AsnValue

public class AsnReal
extends AsnObjectValueBase
implements DecimalValue


Field Summary
 
Fields inherited from interface ch.panter.li.bi.asn.api.DecimalValueInfo
VALUE_COMPARISON_RANGE
 
Constructor Summary
AsnReal()
           
AsnReal(AsnReal copy)
           
AsnReal(AsnType type)
           
AsnReal(BigDecimal value)
           
AsnReal(DecimalValue value)
           
AsnReal(Double value)
           
AsnReal(Float value)
           
 
Method Summary
 void assign(DecimalValue other)
           
protected  int computeHashCode(int baseHash)
           
 AsnReal copyAsnValue()
           
 Number getValue()
           
 boolean hasSameNumericalValue(DecimalValue compare)
           
 boolean hasSameNumericalValue(DecimalValue compare, double range)
           
 boolean hasSameNumericalValue(Number compare)
           
 boolean hasSameNumericalValue(Number compare, double range)
           
 boolean isBinary()
           
protected  boolean isEqualTo(Object compare)
           
 boolean isInfinity()
           
 boolean isNegative()
          Determines whether this instance has a 'negative' value (not including zero).
 boolean isNegativeInfinity()
           
 boolean isPositive()
          Determines whether this instance has a 'positive' value (not including zero).
 boolean isPositiveInfinity()
           
 boolean isValidNumber()
           
 boolean isZero()
          Determines whether this instance has a 'zero' value.
 void setBinary(boolean binary)
           
 void setValue(BigDecimal value)
           
 void setValue(DecimalValue value)
           
 void setValue(Double value)
           
 void setValue(Float value)
           
protected  void validateValueObject(Object value)
           
 
Methods inherited from class ch.panter.li.bi.asn.value.AsnObjectValueBase
copyValueObject, getValueObject, setValueObject, toString
 
Methods inherited from class ch.panter.li.bi.asn.AsnValueBase
checkTypeDerivedFrom, collectValidationInfo, equals, getTag, getType, hashCode, isValid, setTag, validate, validateStructure
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.