Uses of Interface
org.zfcj.math.numbers.NaturalNumber
Packages that use NaturalNumber
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 NaturalNumber in org.zfcj.math.numbers
Subinterfaces of NaturalNumber in org.zfcj.math.numbersModifier and TypeInterfaceDescriptioninterface
APositiveInteger
is aNaturalNumber
that isn'tZero
.Methods in org.zfcj.math.numbers that return NaturalNumberModifier and TypeMethodDescriptionstatic NaturalNumber
IntegerAddition.calculate
(NaturalNumber i, NaturalNumber j) Adds the givenNaturalNumber
s and returns the resultstatic NaturalNumber
IntegerMultiplication.calculate
(NaturalNumber i, NaturalNumber j) Multiplies the givenNaturalNumber
s and returns their productdefault NaturalNumber
NaturalNumber.divide
(NaturalNumber n) Returns the product of thisNaturalNumber
and the givenNaturalNumber
default NaturalNumber
PositiveInteger.minusOne()
Returns theNaturalNumber
that is one less than thisPositiveInteger
default NaturalNumber
NaturalNumber.modulo
(NaturalNumber n) Returns the remainder of dividing thisNaturalNumber
by the givenNaturalNumber
static NaturalNumber
NaturalNumber.of
(int i) Returns theNaturalNumber
that corresponds to the given int istatic NaturalNumber
NaturalNumber.of
(long l) Returns theNaturalNumber
that corresponds to the given long lstatic NaturalNumber
NaturalNumber.of
(BigInteger bi) Returns theNaturalNumber
that corresponds to the givenBigInteger
static NaturalNumber
Creates a newNaturalNumber
from the given stringdefault NaturalNumber
NaturalNumber.plus
(NaturalNumber n) Returns the sum of thisNaturalNumber
and the givenNaturalNumber
default NaturalNumber
NaturalNumber.times
(NaturalNumber n) Returns the product of thisNaturalNumber
and the givenNaturalNumber
Methods in org.zfcj.math.numbers that return types with arguments of type NaturalNumberModifier and TypeMethodDescriptiondefault Stream<NaturalNumber>
NaturalNumber.count0ToN()
Returns aStream
of allNaturalNumber
s in the range fromZero
to thisNaturalNumber
default Stream<NaturalNumber>
NaturalNumber.count0ToNMinus1()
Returns aStream
of allNaturalNumber
s in the range fromZero
to thisNaturalNumber
minus 1default Stream<NaturalNumber>
PositiveInteger.countNMinus1To0()
Returns aStream
of allNaturalNumber
s in the range from thisNaturalNumber
minus 1 toZero
default Stream<NaturalNumber>
NaturalNumber.countNTo0()
Returns aStream
of allNaturalNumber
s in the range from thisNaturalNumber
toZero
default Stream<NaturalNumber>
NaturalNumber.countNTo1()
Returns aStream
of allNaturalNumber
s in the range from thisNaturalNumber
toOne
default Stream<NaturalNumber>
NaturalNumber.countTo
(NaturalNumber value) Returns aStream
of allNaturalNumber
s in the range from thisNaturalNumber
to the givenNaturalNumber
Methods in org.zfcj.math.numbers with parameters of type NaturalNumberModifier and TypeMethodDescriptionstatic NaturalNumber
IntegerAddition.calculate
(NaturalNumber i, NaturalNumber j) Adds the givenNaturalNumber
s and returns the resultstatic NaturalNumber
IntegerMultiplication.calculate
(NaturalNumber i, NaturalNumber j) Multiplies the givenNaturalNumber
s and returns their productdefault Stream<NaturalNumber>
NaturalNumber.countTo
(NaturalNumber value) Returns aStream
of allNaturalNumber
s in the range from thisNaturalNumber
to the givenNaturalNumber
default NaturalNumber
NaturalNumber.divide
(NaturalNumber n) Returns the product of thisNaturalNumber
and the givenNaturalNumber
default NaturalNumber
NaturalNumber.modulo
(NaturalNumber n) Returns the remainder of dividing thisNaturalNumber
by the givenNaturalNumber
default NaturalNumber
NaturalNumber.plus
(NaturalNumber n) Returns the sum of thisNaturalNumber
and the givenNaturalNumber
default NaturalNumber
NaturalNumber.times
(NaturalNumber n) Returns the product of thisNaturalNumber
and the givenNaturalNumber
-
Uses of NaturalNumber in org.zfcj.math.numbers.concrete
Subinterfaces of NaturalNumber in org.zfcj.math.numbers.concreteModifier and TypeInterfaceDescriptioninterface
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 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
The numberFour
or the numberEight
Classes in org.zfcj.math.numbers.concrete that implement NaturalNumberModifier and TypeClassDescriptionfinal 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 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