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 TypeInterfaceDescriptioninterfaceAny integer number such as -12, 14, 0, 1 google, etc.interfaceANaturalNumberis a non-negativeIntegerinterfaceAPositiveIntegeris aNaturalNumberthat 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 RationalNumberRationalAddition.calculate(RationalNumber t, RationalNumber u) Calculates the sum of addition of the givenRationalNumbersummandsstatic RationalNumberRationalMultiplication.calculate(RationalNumber r, RationalNumber s) Calculates the product of multiplication of the givenRationalNumberfactorsdefault RationalNumberRationalNumber.dividedBy(RationalNumber n) Returns the quotient of dividing thisRationalNumberby the givenRationalNumberdefault RationalNumberRationalNumber.minus(RationalNumber n) Returns the difference between thisRationalNumberand the givenRationalNumberstatic RationalNumberRationalNumber.of(int numerator, int denominator) Creates a newRationalNumberfrom the given int numerator and denominatorstatic RationalNumberRationalNumber.of(long numerator, long denominator) Creates a newRationalNumberfrom the given long numerator and denominatorstatic RationalNumberCreates a newRationalNumberfrom the given Integer numerator and denominatordefault RationalNumberRationalNumber.plus(RationalNumber n) Returns the sum of thisRationalNumberand the givenRationalNumberdefault RationalNumberRationalNumber.reduce()Returns aRationalNumberthat is equivalent to thisRationalNumberreduced to its lowest termsdefault RationalNumberRationalNumber.times(RationalNumber n) Returns the product of multiplying thisRationalNumberby the givenRationalNumberMethods in org.zfcj.math.numbers with parameters of type RationalNumberModifier and TypeMethodDescriptionRationalAddition.apply(RationalNumber t, RationalNumber u) RationalMultiplication.apply(RationalNumber r, RationalNumber s) static RationalNumberRationalAddition.calculate(RationalNumber t, RationalNumber u) Calculates the sum of addition of the givenRationalNumbersummandsstatic RationalNumberRationalMultiplication.calculate(RationalNumber r, RationalNumber s) Calculates the product of multiplication of the givenRationalNumberfactorsdefault RationalNumberRationalNumber.dividedBy(RationalNumber n) Returns the quotient of dividing thisRationalNumberby the givenRationalNumberdefault RationalNumberRationalNumber.minus(RationalNumber n) Returns the difference between thisRationalNumberand the givenRationalNumberdefault RationalNumberRationalNumber.plus(RationalNumber n) Returns the sum of thisRationalNumberand the givenRationalNumberdefault RationalNumberRationalNumber.times(RationalNumber n) Returns the product of multiplying thisRationalNumberby the givenRationalNumber -
Uses of RationalNumber in org.zfcj.math.numbers.concrete
Subinterfaces of RationalNumber in org.zfcj.math.numbers.concreteModifier and TypeInterfaceDescriptioninterfaceAnIntegerthat is at least some otherIntegerinterfaceAnIntegerno less than 8interfaceAnIntegerno less than 18interfaceAnIntegerno less than 11interfaceAnIntegerno less than 15interfaceAnIntegerno less than 5interfaceAnIntegerno less than 4interfaceAnIntegerno less than 14interfaceAnIntegerno less than -1interfaceAnIntegerno 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 0interfaceAnIntegerthat is at most some otherIntegerinterfaceAnIntegerno greater than 8interfaceAnIntegerno greater than 18interfaceAnIntegerno greater than 11interfaceAnIntegerno greater than 15interfaceAnIntegerno greater than 5interfaceAnIntegerno greater than 4interfaceAnIntegerno greater than 14interfaceAnIntegerno greater than -1interfaceAnIntegerno greater than 9interfaceAnIntegerno greater than 19interfaceAnIntegerno greater than 1interfaceAnIntegerno greater than 7interfaceAnIntegerno greater than 17interfaceAnIntegerno greater than 6interfaceAnIntegerno greater than 16interfaceAnIntegerno greater than 10interfaceAnIntegerno greater than 13interfaceAnIntegerno greater than 3interfaceAnIntegerno greater than 12interfaceAnIntegerno greater than 20interfaceAnIntegerno greater than 2interfaceAnIntegerno greater than 0interfaceThe numberFouror the numberEightinterfaceNMinus1<N extends ConcreteNumber>Represents anIntegerthat is 1 less than some other (integer)ConcreteNumberinterfaceNPlus1<N extends ConcreteNumber>Represents anIntegerthat is 1 more than some other (integer)ConcreteNumberClasses in org.zfcj.math.numbers.concrete that implement RationalNumberModifier and TypeClassDescriptionclassAConcreteNumberis anIntegerwhose value is always the same specific integer and is identified by its type name.final 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 -1final 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