wt.iba.value
Class UnitValue.UnitNumber

java.lang.Object
  extended byjava.lang.Number
      extended bywt.iba.value.UnitValue.UnitNumber
All Implemented Interfaces:
Serializable
Enclosing class:
UnitValue

static final class UnitValue.UnitNumber
extends Number

Simple Number implementation whose toString() handles precision in a consistent fashion to that of the IBA view classes.


Field Summary
private  String stringValue
           
private  double value
           
 
Fields inherited from class java.lang.Number
 
Constructor Summary
UnitValue.UnitNumber(double value, int precision, String units, String displayUnits)
           
 
Method Summary
 byte byteValue()
           
 double doubleValue()
           
 float floatValue()
           
 int intValue()
           
 long longValue()
           
 short shortValue()
           
 String toString()
          Returns value as a ratio.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private double value

stringValue

private String stringValue
Constructor Detail

UnitValue.UnitNumber

public UnitValue.UnitNumber(double value,
                            int precision,
                            String units,
                            String displayUnits)
Method Detail

intValue

public int intValue()

longValue

public long longValue()

floatValue

public float floatValue()

doubleValue

public double doubleValue()

byteValue

public byte byteValue()

shortValue

public short shortValue()

toString

public String toString()
Returns value as a ratio.