public class Rational
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description | 
|---|---|
static int | 
SIZE_IN_BYTES  | 
| Constructor and Description | 
|---|
Rational(long molecule,
        long denominator)  | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
bytes()
Returns the byte array according to the Exif 2.3 standard RATIONAL. 
 | 
boolean | 
equals(java.lang.Object o)
Compares strictly, 1/2 equals to 1/2, but 1/2 does not equal to 2/4. 
 | 
long | 
getDenominator()
Returns the denominator of this rational value. 
 | 
long | 
getMolecule()
Returns the molecule of this rational value. 
 | 
int | 
hashCode() | 
java.lang.String | 
toString()
Returns the string such as 1/1, 2/2, and 3/5. 
 | 
static Rational | 
valueOf(byte[] bytes)
Returns the 
 | 
public static final int SIZE_IN_BYTES
public static Rational valueOf(byte[] bytes)
public long getMolecule()
public long getDenominator()
public byte[] bytes()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object