Class Rational
- java.lang.Object
-
- java.lang.Number
-
- com.twelvemonkeys.imageio.metadata.exif.Rational
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Rational>
public final class Rational extends java.lang.Number implements java.lang.Comparable<Rational>
Deprecated.Use com.twelvemonkeys.imageio.metadata.tiff.Rational instead.Represents a rational number with along
numerator andlong
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$
- Author:
- Harald Kuhr, last modified by $Author: haraldk$
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte
byteValue()
Deprecated.int
compareTo(Rational pOther)
Deprecated.long
denominator()
Deprecated.double
doubleValue()
Deprecated.boolean
equals(java.lang.Object pOther)
Deprecated.float
floatValue()
Deprecated.int
hashCode()
Deprecated.int
intValue()
Deprecated.long
longValue()
Deprecated.long
numerator()
Deprecated.short
shortValue()
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
numerator
public long numerator()
Deprecated.
-
denominator
public long denominator()
Deprecated.
-
byteValue
public byte byteValue()
Deprecated.- Overrides:
byteValue
in classjava.lang.Number
-
shortValue
public short shortValue()
Deprecated.- Overrides:
shortValue
in classjava.lang.Number
-
intValue
public int intValue()
Deprecated.- Specified by:
intValue
in classjava.lang.Number
-
longValue
public long longValue()
Deprecated.- Specified by:
longValue
in classjava.lang.Number
-
floatValue
public float floatValue()
Deprecated.- Specified by:
floatValue
in classjava.lang.Number
-
doubleValue
public double doubleValue()
Deprecated.- Specified by:
doubleValue
in classjava.lang.Number
-
compareTo
public int compareTo(Rational pOther)
Deprecated.- Specified by:
compareTo
in interfacejava.lang.Comparable<Rational>
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object pOther)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-