|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstreamit.misc.Fraction
public class Fraction
| Constructor Summary | |
|---|---|
Fraction(BigInteger num,
BigInteger denom)
|
|
Fraction(Fraction frac)
|
|
Fraction(long num,
long denom)
|
|
Fraction(String strFrac)
|
|
| Method Summary | |
|---|---|
Fraction |
add(Fraction temp)
|
int |
compareTo(Fraction temp)
|
Fraction |
divide(BigInteger temp)
|
Fraction |
divide(Fraction temp)
|
boolean |
equals(Fraction temp)
|
BigInteger |
getDenom()
|
BigInteger |
getDenominator()
|
BigInteger |
getNum()
|
BigInteger |
getNumerator()
|
Fraction |
inverse()
|
Fraction |
multiply(BigInteger temp)
|
Fraction |
multiply(Fraction temp)
|
Fraction |
negate()
|
Fraction |
reduce()
|
void |
set(BigInteger num,
BigInteger denom)
|
void |
set(long num,
long denom)
|
Fraction |
subtract(Fraction temp)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Fraction(long num,
long denom)
public Fraction(BigInteger num,
BigInteger denom)
public Fraction(Fraction frac)
public Fraction(String strFrac)
| Method Detail |
|---|
public void set(BigInteger num,
BigInteger denom)
public void set(long num,
long denom)
public BigInteger getNum()
public BigInteger getDenom()
public Fraction reduce()
public Fraction subtract(Fraction temp)
public Fraction add(Fraction temp)
public Fraction multiply(Fraction temp)
public Fraction multiply(BigInteger temp)
public Fraction divide(Fraction temp)
public Fraction divide(BigInteger temp)
public boolean equals(Fraction temp)
public int compareTo(Fraction temp)
public Fraction inverse()
public Fraction negate()
public BigInteger getNumerator()
public BigInteger getDenominator()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||