|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
loci.formats.TiffRational
A rational number (numerator over denominator).
| Field Summary | |
protected long |
denom
Components of the rational's fractional representation. |
protected long |
numer
Components of the rational's fractional representation. |
| Constructor Summary | |
TiffRational(long numer,
long denom)
Constructs a rational number. |
|
| Method Summary | |
byte |
byteValue()
Returns the value of the specified number as a byte. |
int |
compareTo(Object o)
Compares this object with the specified object for order. |
double |
doubleValue()
Returns the value of the specified number as a double. |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
float |
floatValue()
Returns the value of the specified number as a float. |
long |
getDenominator()
Gets this number's denominator. |
long |
getNumerator()
Gets this number's numerator. |
int |
intValue()
Returns the value of the specified number as an int. |
long |
longValue()
Returns the value of the specified number as a long. |
void |
reduce()
Reduces this rational's fraction to lowest terms. |
short |
shortValue()
Returns the value of the specified number as a short. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected long numer
protected long denom
| Constructor Detail |
public TiffRational(long numer,
long denom)
| Method Detail |
public long getNumerator()
public long getDenominator()
public void reduce()
public byte byteValue()
public double doubleValue()
public float floatValue()
public int intValue()
public long longValue()
public short shortValue()
public boolean equals(Object o)
public String toString()
public int compareTo(Object o)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||