Class Rational
java.lang.Object
java.lang.Number
com.twelvemonkeys.imageio.metadata.exif.Rational
- All Implemented Interfaces:
Serializable, Comparable<Rational>
Deprecated.
Use com.twelvemonkeys.imageio.metadata.tiff.Rational instead.
Represents a rational number with a
long numerator and long denominator.
Rational numbers are stored in reduced form with the sign stored with the numerator.
Rationals are immutable.- Version:
- $Id: Rational.java,v 1.0 Nov 18, 2009 1:12:00 AM haraldk Exp$
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
delegate
Deprecated.
-
-
Constructor Details
-
Rational
public Rational(long pNumber) Deprecated. -
Rational
public Rational(long pNumerator, long pDenominator) Deprecated. -
Rational
Deprecated.
-
-
Method Details
-
numerator
public long numerator()Deprecated. -
denominator
public long denominator()Deprecated. -
byteValue
-
shortValue
-
intValue
-
longValue
-
floatValue
-
doubleValue
-
compareTo
Deprecated.- Specified by:
compareToin interfaceComparable<Rational>
-
hashCode
-
equals
-
toString
-