Class Rational

java.lang.Object
java.lang.Number
com.twelvemonkeys.imageio.metadata.exif.Rational
All Implemented Interfaces:
Serializable, Comparable<Rational>

@Deprecated public final class Rational extends Number implements 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$
Author:
Harald Kuhr, last modified by $Author: haraldk$
See Also:
  • Constructor Details

    • Rational

      public Rational(long pNumber)
      Deprecated.
    • Rational

      public Rational(long pNumerator, long pDenominator)
      Deprecated.
  • Method Details

    • numerator

      public long numerator()
      Deprecated.
    • denominator

      public long denominator()
      Deprecated.
    • byteValue

      public byte byteValue()
      Deprecated.
      Overrides:
      byteValue in class Number
    • shortValue

      public short shortValue()
      Deprecated.
      Overrides:
      shortValue in class Number
    • intValue

      public int intValue()
      Deprecated.
      Specified by:
      intValue in class Number
    • longValue

      public long longValue()
      Deprecated.
      Specified by:
      longValue in class Number
    • floatValue

      public float floatValue()
      Deprecated.
      Specified by:
      floatValue in class Number
    • doubleValue

      public double doubleValue()
      Deprecated.
      Specified by:
      doubleValue in class Number
    • compareTo

      public int compareTo(Rational pOther)
      Deprecated.
      Specified by:
      compareTo in interface Comparable<Rational>
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object pOther)
      Deprecated.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object