Index
Alle Klassen und Schnittstellen|Alle Packages|Serialisierte Form
A
- add(Rational) - Methode in Klasse Rational
-
Returns a Rational whose value is (this + r).
C
- compareTo(Rational) - Methode in Klasse Rational
D
- denominator - Variable in Klasse Rational
-
The denominator part of the rational number.
- divide(Rational) - Methode in Klasse Rational
-
Returns a Rational whose value is (this / r).
- doubleValue() - Methode in Klasse Rational
E
- equals(Object) - Methode in Klasse Rational
F
- floatValue() - Methode in Klasse Rational
- FORMAT - Statische Variable in Klasse Rational
- formatTo(Formatter, int, int, int) - Methode in Klasse Rational
G
- gcd(long, long) - Statische Methode in Klasse Rational
-
Computes the greates common divisor using Euclid's algorithm.
- getDenominator() - Methode in Klasse Rational
-
Returns the denominator part of the reduced rational number.
- getNumerator() - Methode in Klasse Rational
-
Returns the numerator part of the reduced rational number.
H
- hashCode() - Methode in Klasse Rational
I
- intValue() - Methode in Klasse Rational
- invert() - Methode in Klasse Rational
-
Returns a Rational with numerator and denominator swapped.
L
- longValue() - Methode in Klasse Rational
M
- main(String[]) - Statische Methode in Klasse RationalTest
-
Evaluates an arithmetic postfix expression with rational numbers.
- MAX_VALUE - Statische Variable in Klasse Rational
-
The largest positive value of type Rational, Integer.MAX_VALUE.
- MIN_VALUE - Statische Variable in Klasse Rational
-
The smallest positive nonzero value of type Rational, 1 / Integer.MAX_VALUE.
- multiply(Rational) - Methode in Klasse Rational
-
Returns a Rational whose value is (this * r).
N
- negate() - Methode in Klasse Rational
-
Returns a Rational with inverted sign.
- numerator - Variable in Klasse Rational
-
The numerator part of the rational number.
O
R
- Rational - Klasse in Unbenanntes Package
-
A rational number is stored as an integer pair (numerator, denominator).
- Rational(long, long) - Konstruktor für Klasse Rational
- RationalTest - Klasse in Unbenanntes Package
-
Test driver.
- RationalTest() - Konstruktor für Klasse RationalTest
S
- signum() - Methode in Klasse Rational
-
Returns the signum function of this Rational.
- subtract(Rational) - Methode in Klasse Rational
-
Returns a Rational whose value is (this - r).
T
- toString() - Methode in Klasse Rational
-
Returns a string representation of this Rational.
V
- valueOf(int) - Statische Methode in Klasse Rational
-
Converts an integer to a rational number.
- valueOf(int, int) - Statische Methode in Klasse Rational
-
Rational number with numerator n and denominator d.
- valueOf(String) - Statische Methode in Klasse Rational
-
Converts a string to a rational number.
Z
A C D E F G H I L M N O R S T V ZAlle Klassen und Schnittstellen|Alle Packages|Serialisierte Form