Class Rational
- java.lang.Object
-
- java.lang.Number
-
- com.twelvemonkeys.imageio.metadata.exif.Rational
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Rational>
@Deprecated 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 alongnumerator andlongdenominator. 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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description bytebyteValue()Deprecated.intcompareTo(Rational pOther)Deprecated.longdenominator()Deprecated.doubledoubleValue()Deprecated.booleanequals(java.lang.Object pOther)Deprecated.floatfloatValue()Deprecated.inthashCode()Deprecated.intintValue()Deprecated.longlongValue()Deprecated.longnumerator()Deprecated.shortshortValue()Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Field Detail
-
delegate
private final Rational delegate
Deprecated.
-
-
Constructor Detail
-
Rational
public Rational(long pNumber)
Deprecated.
-
Rational
public Rational(long pNumerator, long pDenominator)Deprecated.
-
Rational
private Rational(Rational delegate)
Deprecated.
-
-
Method Detail
-
numerator
public long numerator()
Deprecated.
-
denominator
public long denominator()
Deprecated.
-
byteValue
public byte byteValue()
Deprecated.- Overrides:
byteValuein classjava.lang.Number
-
shortValue
public short shortValue()
Deprecated.- Overrides:
shortValuein classjava.lang.Number
-
intValue
public int intValue()
Deprecated.- Specified by:
intValuein classjava.lang.Number
-
longValue
public long longValue()
Deprecated.- Specified by:
longValuein classjava.lang.Number
-
floatValue
public float floatValue()
Deprecated.- Specified by:
floatValuein classjava.lang.Number
-
doubleValue
public double doubleValue()
Deprecated.- Specified by:
doubleValuein classjava.lang.Number
-
compareTo
public int compareTo(Rational pOther)
Deprecated.- Specified by:
compareToin interfacejava.lang.Comparable<Rational>
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object pOther)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-