Uses of Interface
org.zfcj.math.numbers.RationalNumber
Packages that use RationalNumber
Package
Description
Core numeric types for integer and
real-valued arithmetic
Provides the auto-generated
ConcreteNumber
abstract
base class along with its singleton sub-types Zero
,
One
, Two
, etc and supporting types-
Uses of RationalNumber in org.zfcj.math.numbers
Subinterfaces of RationalNumber in org.zfcj.math.numbersModifier and TypeInterfaceDescriptioninterface
Any integer number such as -12, 14, 0, 1 google, etc.interface
ANaturalNumber
is a non-negativeInteger
interface
APositiveInteger
is aNaturalNumber
that isn'tZero
.Methods in org.zfcj.math.numbers that return RationalNumberModifier and TypeMethodDescriptionRationalAddition.apply
(RationalNumber t, RationalNumber u) RationalMultiplication.apply
(RationalNumber r, RationalNumber s) static RationalNumber
RationalAddition.calculate
(RationalNumber t, RationalNumber u) Calculates the sum of addition of the givenRationalNumber
summandsstatic RationalNumber
RationalMultiplication.calculate
(RationalNumber r, RationalNumber s) Calculates the product of multiplication of the givenRationalNumber
factorsdefault RationalNumber
RationalNumber.dividedBy
(RationalNumber n) Returns the quotient of dividing thisRationalNumber
by the givenRationalNumber
default RationalNumber
RationalNumber.minus
(RationalNumber n) Returns the difference between thisRationalNumber
and the givenRationalNumber
static RationalNumber
RationalNumber.of
(int numerator, int denominator) Creates a newRationalNumber
from the given int numerator and denominatorstatic RationalNumber
RationalNumber.of
(long numerator, long denominator) Creates a newRationalNumber
from the given long numerator and denominatorstatic RationalNumber
Creates a newRationalNumber
from the given Integer numerator and denominatordefault RationalNumber
RationalNumber.plus
(RationalNumber n) Returns the sum of thisRationalNumber
and the givenRationalNumber
default RationalNumber
RationalNumber.reduce()
Returns aRationalNumber
that is equivalent to thisRationalNumber
reduced to its lowest termsdefault RationalNumber
RationalNumber.times
(RationalNumber n) Returns the product of multiplying thisRationalNumber
by the givenRationalNumber
Methods in org.zfcj.math.numbers with parameters of type RationalNumberModifier and TypeMethodDescriptionRationalAddition.apply
(RationalNumber t, RationalNumber u) RationalMultiplication.apply
(RationalNumber r, RationalNumber s) static RationalNumber
RationalAddition.calculate
(RationalNumber t, RationalNumber u) Calculates the sum of addition of the givenRationalNumber
summandsstatic RationalNumber
RationalMultiplication.calculate
(RationalNumber r, RationalNumber s) Calculates the product of multiplication of the givenRationalNumber
factorsdefault RationalNumber
RationalNumber.dividedBy
(RationalNumber n) Returns the quotient of dividing thisRationalNumber
by the givenRationalNumber
default RationalNumber
RationalNumber.minus
(RationalNumber n) Returns the difference between thisRationalNumber
and the givenRationalNumber
default RationalNumber
RationalNumber.plus
(RationalNumber n) Returns the sum of thisRationalNumber
and the givenRationalNumber
default RationalNumber
RationalNumber.times
(RationalNumber n) Returns the product of multiplying thisRationalNumber
by the givenRationalNumber
-
Uses of RationalNumber in org.zfcj.math.numbers.concrete
Subinterfaces of RationalNumber in org.zfcj.math.numbers.concreteModifier and TypeInterfaceDescriptioninterface
AnInteger
that is at least some otherInteger
interface
AnInteger
no less than 8interface
AnInteger
no less than 18interface
AnInteger
no less than 11interface
AnInteger
no less than 15interface
AnInteger
no less than 5interface
AnInteger
no less than 4interface
AnInteger
no less than 14interface
AnInteger
no less than -1interface
AnInteger
no less than 9interface
AnInteger
no less than 19interface
AnInteger
no less than 1interface
AnInteger
no less than 7interface
AnInteger
no less than 17interface
AnInteger
no less than 6interface
AnInteger
no less than 16interface
AnInteger
no less than 10interface
AnInteger
no less than 13interface
AnInteger
no less than 3interface
AnInteger
no less than 12interface
AnInteger
no less than 20interface
AnInteger
no less than 2interface
AnInteger
no less than 0interface
AnInteger
that is at most some otherInteger
interface
AnInteger
no greater than 8interface
AnInteger
no greater than 18interface
AnInteger
no greater than 11interface
AnInteger
no greater than 15interface
AnInteger
no greater than 5interface
AnInteger
no greater than 4interface
AnInteger
no greater than 14interface
AnInteger
no greater than -1interface
AnInteger
no greater than 9interface
AnInteger
no greater than 19interface
AnInteger
no greater than 1interface
AnInteger
no greater than 7interface
AnInteger
no greater than 17interface
AnInteger
no greater than 6interface
AnInteger
no greater than 16interface
AnInteger
no greater than 10interface
AnInteger
no greater than 13interface
AnInteger
no greater than 3interface
AnInteger
no greater than 12interface
AnInteger
no greater than 20interface
AnInteger
no greater than 2interface
AnInteger
no greater than 0interface
The numberFour
or the numberEight
interface
NMinus1<N extends ConcreteNumber>
Represents anInteger
that is 1 less than some other (integer)ConcreteNumber
interface
NPlus1<N extends ConcreteNumber>
Represents anInteger
that is 1 more than some other (integer)ConcreteNumber
Classes in org.zfcj.math.numbers.concrete that implement RationalNumberModifier and TypeClassDescriptionclass
AConcreteNumber
is anInteger
whose value is always the same specific integer and is identified by its type name.final class
The concrete number 8final class
The concrete number 18final class
The concrete number 11final class
The concrete number 15final class
The concrete number 5final class
The concrete number 4final class
The concrete number 14final class
The concrete number -1final class
The concrete number 9final class
The concrete number 19final class
The concrete number 1final class
The concrete number 7final class
The concrete number 17final class
The concrete number 6final class
The concrete number 16final class
The concrete number 10final class
The concrete number 13final class
The concrete number 3final class
The concrete number 12final class
The concrete number 20final class
The concrete number 2final class
The concrete number 0