public class Rational
extends java.lang.Object
| 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() |
boolean |
equals(java.lang.Object o) |
long |
getDenominator() |
long |
getMolecule() |
int |
hashCode() |
java.lang.String |
toString() |
static Rational |
valueOf(byte[] bytes) |
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