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 TypeInterfaceDescriptioninterfaceAPositiveIntegeris aNaturalNumberthat isn'tZero.Methods in org.zfcj.math.numbers that return NaturalNumberModifier and TypeMethodDescriptionstatic NaturalNumberIntegerAddition.calculate(NaturalNumber i, NaturalNumber j) Adds the givenNaturalNumbers and returns the resultstatic NaturalNumberIntegerMultiplication.calculate(NaturalNumber i, NaturalNumber j) Multiplies the givenNaturalNumbers and returns their productdefault NaturalNumberNaturalNumber.divide(NaturalNumber n) Returns the product of thisNaturalNumberand the givenNaturalNumberdefault NaturalNumberPositiveInteger.minusOne()Returns theNaturalNumberthat is one less than thisPositiveIntegerdefault NaturalNumberNaturalNumber.modulo(NaturalNumber n) Returns the remainder of dividing thisNaturalNumberby the givenNaturalNumberstatic NaturalNumberNaturalNumber.of(int i) Returns theNaturalNumberthat corresponds to the given int istatic NaturalNumberNaturalNumber.of(long l) Returns theNaturalNumberthat corresponds to the given long lstatic NaturalNumberNaturalNumber.of(BigInteger bi) Returns theNaturalNumberthat corresponds to the givenBigIntegerstatic NaturalNumberCreates a newNaturalNumberfrom the given stringdefault NaturalNumberNaturalNumber.plus(NaturalNumber n) Returns the sum of thisNaturalNumberand the givenNaturalNumberdefault NaturalNumberNaturalNumber.times(NaturalNumber n) Returns the product of thisNaturalNumberand the givenNaturalNumberMethods in org.zfcj.math.numbers that return types with arguments of type NaturalNumberModifier and TypeMethodDescriptiondefault Stream<NaturalNumber>NaturalNumber.count0ToN()Returns aStreamof allNaturalNumbers in the range fromZeroto thisNaturalNumberdefault Stream<NaturalNumber>NaturalNumber.count0ToNMinus1()Returns aStreamof allNaturalNumbers in the range fromZeroto thisNaturalNumberminus 1default Stream<NaturalNumber>PositiveInteger.countNMinus1To0()Returns aStreamof allNaturalNumbers in the range from thisNaturalNumberminus 1 toZerodefault Stream<NaturalNumber>NaturalNumber.countNTo0()Returns aStreamof allNaturalNumbers in the range from thisNaturalNumbertoZerodefault Stream<NaturalNumber>NaturalNumber.countNTo1()Returns aStreamof allNaturalNumbers in the range from thisNaturalNumbertoOnedefault Stream<NaturalNumber>NaturalNumber.countTo(NaturalNumber value) Returns aStreamof allNaturalNumbers in the range from thisNaturalNumberto the givenNaturalNumberMethods in org.zfcj.math.numbers with parameters of type NaturalNumberModifier and TypeMethodDescriptionstatic NaturalNumberIntegerAddition.calculate(NaturalNumber i, NaturalNumber j) Adds the givenNaturalNumbers and returns the resultstatic NaturalNumberIntegerMultiplication.calculate(NaturalNumber i, NaturalNumber j) Multiplies the givenNaturalNumbers and returns their productdefault Stream<NaturalNumber>NaturalNumber.countTo(NaturalNumber value) Returns aStreamof allNaturalNumbers in the range from thisNaturalNumberto the givenNaturalNumberdefault NaturalNumberNaturalNumber.divide(NaturalNumber n) Returns the product of thisNaturalNumberand the givenNaturalNumberdefault NaturalNumberNaturalNumber.modulo(NaturalNumber n) Returns the remainder of dividing thisNaturalNumberby the givenNaturalNumberdefault NaturalNumberNaturalNumber.plus(NaturalNumber n) Returns the sum of thisNaturalNumberand the givenNaturalNumberdefault NaturalNumberNaturalNumber.times(NaturalNumber n) Returns the product of thisNaturalNumberand the givenNaturalNumber -
Uses of NaturalNumber in org.zfcj.math.numbers.concrete
Subinterfaces of NaturalNumber in org.zfcj.math.numbers.concreteModifier and TypeInterfaceDescriptioninterfaceAnIntegerno less than 8interfaceAnIntegerno less than 18interfaceAnIntegerno less than 11interfaceAnIntegerno less than 15interfaceAnIntegerno less than 5interfaceAnIntegerno less than 4interfaceAnIntegerno less than 14interfaceAnIntegerno less than 9interfaceAnIntegerno less than 19interfaceAnIntegerno less than 1interfaceAnIntegerno less than 7interfaceAnIntegerno less than 17interfaceAnIntegerno less than 6interfaceAnIntegerno less than 16interfaceAnIntegerno less than 10interfaceAnIntegerno less than 13interfaceAnIntegerno less than 3interfaceAnIntegerno less than 12interfaceAnIntegerno less than 20interfaceAnIntegerno less than 2interfaceAnIntegerno less than 0interfaceThe numberFouror the numberEightClasses in org.zfcj.math.numbers.concrete that implement NaturalNumberModifier and TypeClassDescriptionfinal classThe concrete number 8final classThe concrete number 18final classThe concrete number 11final classThe concrete number 15final classThe concrete number 5final classThe concrete number 4final classThe concrete number 14final classThe concrete number 9final classThe concrete number 19final classThe concrete number 1final classThe concrete number 7final classThe concrete number 17final classThe concrete number 6final classThe concrete number 16final classThe concrete number 10final classThe concrete number 13final classThe concrete number 3final classThe concrete number 12final classThe concrete number 20final classThe concrete number 2final classThe concrete number 0