wt.iba.value
Class RatioValue.RatioNumber

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

static final class RatioValue.RatioNumber
extends Number

Simple Number implementation that maintains an internal ratio storage and corresponding toString().


Field Summary
private  double denominator
           
private  double value
           
 
Fields inherited from class java.lang.Number
 
Constructor Summary
RatioValue.RatioNumber(double value, double denominator)
           
 
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

denominator

private double denominator
Constructor Detail

RatioValue.RatioNumber

public RatioValue.RatioNumber(double value,
                              double denominator)
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.