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
public byte byteValue()Deprecated. -
shortValue
public short shortValue()Deprecated.- Overrides:
shortValue
in classNumber
-
intValue
public int intValue()Deprecated. -
longValue
public long longValue()Deprecated. -
floatValue
public float floatValue()Deprecated.- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()Deprecated.- Specified by:
doubleValue
in classNumber
-
compareTo
Deprecated.- Specified by:
compareTo
in interfaceComparable<Rational>
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated. -
toString
Deprecated.
-