wt.iba.value
Class FloatValue.LimitedPrecisionNumber

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

static final class FloatValue.LimitedPrecisionNumber
extends Number

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


Field Summary
private  int precision
           
private  double value
           
 
Fields inherited from class java.lang.Number
 
Constructor Summary
FloatValue.LimitedPrecisionNumber(double value, int precision)
           
 
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

precision

private int precision
Constructor Detail

FloatValue.LimitedPrecisionNumber

public FloatValue.LimitedPrecisionNumber(double value,
                                         int precision)
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.