A C D E F G I L M P S T

A

abs(MyNumber) - Static method in class MyNumbers
Returns a new MyNumber object that initially holds the absolute value of n.

C

clone() - Method in class MyBigInteger
 
clone() - Method in interface MyNumber
Returns a new MyNumber object that initially equals this.
clone() - Method in class MyInteger
 
createCompatible(int) - Method in class MyBigInteger
 
createCompatible(int) - Method in interface MyNumber
Returns a new MyNumber object that initially holds the value i.
createCompatible(int) - Method in class MyInteger
 

D

divides(MyIntegralNumber) - Method in class MyBigInteger
 
divides(MyIntegralNumber) - Method in class MyInteger
 
divides(MyIntegralNumber) - Method in interface MyIntegralNumber
Returns true if n is evenly divisible by this.
divides(MyNumber, MyNumber) - Static method in class MyNumbers
Returns true if m divides n evenly.

E

equals(Object) - Method in class MyBigInteger
 
equals(Object) - Method in interface MyNumber
Tests whether o and this are equal.
equals(Object) - Method in class MyInteger
 

F

Factorize - class Factorize.
Factorization of MyIntegralNumbers.

G

getFactor(MyIntegralNumber) - Static method in class Factorize
Prints "Prime" on the terminal if ival is prime; otherwise, prints a non-trivial factor of ival.

I

isNegative(MyNumber) - Static method in class MyNumbers
Returns true if n is negative.
isZero(MyNumber) - Static method in class MyNumbers
Returns true if n is zero.

L

lessThan(MyNumber) - Method in class MyBigInteger
 
lessThan(MyNumber) - Method in interface MyNumber
Returns true if this is smaller than n.
lessThan(MyNumber) - Method in class MyInteger
 

M

minus() - Method in class MyBigInteger
 
minus() - Method in interface MyNumber
Replaces this with -this.
minus() - Method in class MyInteger
 
MyBigInteger - class MyBigInteger.
A mutable, arbitrary-precision integer.
MyBigInteger(int) - Constructor for class MyBigInteger
Constructs a new MyBigInteger object that initially stores the integer value i.
MyInteger - class MyInteger.
Encapsulates a mutable int.
MyInteger(int) - Constructor for class MyInteger
Constructs a new MyInteger object that initially stores the integer value i.
MyIntegralNumber - interface MyIntegralNumber.
A mutable, integral number.
MyNumber - interface MyNumber.
A mutable number.
MyNumbers - class MyNumbers.
Generic utility functions for MyNumbers.

P

plus(MyNumber) - Method in class MyBigInteger
 
plus(MyNumber) - Method in interface MyNumber
Replaces this with this + n.
plus(MyNumber) - Method in class MyInteger
 

S

squareOf() - Method in class MyBigInteger
 
squareOf() - Method in interface MyNumber
Returns a new object holding the square of the value of this.
squareOf() - Method in class MyInteger
 

T

times(MyNumber) - Method in class MyBigInteger
 
times(MyNumber) - Method in interface MyNumber
Replaces this with this * n.
times(MyNumber) - Method in class MyInteger
 
toString() - Method in class MyBigInteger
 
toString() - Method in interface MyNumber
Retrieves the decimal representation of the stored integer.
toString() - Method in class MyInteger
 

A C D E F G I L M P S T