|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
loci.formats.TiffRational
public class 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 |
hashCode()
Reasonable hash value for use with hashtables. |
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, 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()
byteValue
in class Number
public double doubleValue()
doubleValue
in class Number
public float floatValue()
floatValue
in class Number
public int intValue()
intValue
in class Number
public long longValue()
longValue
in class Number
public short shortValue()
shortValue
in class Number
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
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 |