wt.iba.value
Class RatioValue.RatioNumber
java.lang.Object
java.lang.Number
wt.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().
Fields inherited from class java.lang.Number |
|
value
private double value
denominator
private double denominator
RatioValue.RatioNumber
public RatioValue.RatioNumber(double value,
double denominator)
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.