- All Superinterfaces:
Comparable<PsyRealNumeric>,PsyAdditive<PsyNumeric>,PsyArithmetic<PsyNumeric>,PsyBitwise<PsyIntegral>,PsyConvertableToInteger,PsyConvertableToIntegral,PsyConvertableToRational,PsyConvertableToReal,PsyLogical<PsyIntegral>,PsyMultiplicative<PsyNumeric>,PsyNumeric,PsyObject,PsyRational,PsyRealNumeric,PsyScalar<PsyRealNumeric>,PsyValue
- All Known Implementing Classes:
PsyBigInteger,PsyInteger
@Type("integral")
public sealed interface PsyIntegral
extends PsyBitwise<PsyIntegral>, PsyRational
permits PsyBigInteger, PsyInteger
The representation of
integral.-
Field Summary
Fields inherited from interface coneforest.psylla.core.PsyAdditive
PSY_ADD, PSY_ISZERO, PSY_NEG, PSY_NONZERO, PSY_SUBFields inherited from interface coneforest.psylla.core.PsyBitwise
PSY_BITSHIFT, PSY_CLEARBIT, PSY_FLIPBIT, PSY_SETBIT, PSY_TESTBITFields inherited from interface coneforest.psylla.core.PsyConvertableToInteger
PSY_TOINTEGERFields inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
PSY_TOINTEGRALFields inherited from interface coneforest.psylla.core.PsyConvertableToRational
PSY_TORATIONALFields inherited from interface coneforest.psylla.core.PsyConvertableToReal
PSY_TOREALFields inherited from interface coneforest.psylla.core.PsyLogical
PSY_AND, PSY_NOT, PSY_OR, PSY_XORFields inherited from interface coneforest.psylla.core.PsyMultiplicative
PSY_DIV, PSY_MUL, PSY_RECIPROCALFields inherited from interface coneforest.psylla.core.PsyNumeric
PSY_ABS, PSY_ACOS, PSY_ASIN, PSY_ATAN, PSY_CBRT, PSY_COS, PSY_COSH, PSY_EXP, PSY_LOG, PSY_POW, PSY_SIGNUM, PSY_SIN, PSY_SINH, PSY_SQRT, PSY_TAN, PSY_TANHFields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPEFields inherited from interface coneforest.psylla.core.PsyRational
PSY_DENOMINATOR, PSY_GCD, PSY_IDIV, PSY_LCM, PSY_MOD, PSY_NUMERATORFields inherited from interface coneforest.psylla.core.PsyRealNumeric
PSY_CEILING, PSY_FLOOR, PSY_HYPOT, PSY_ROUND -
Method Summary
Modifier and TypeMethodDescriptionstatic PsyIntegerof(long longValue) static PsyIntegralof(BigInteger bigIntegerValue) static PsyIntegralparseLiteral(String image) Returns theintegralobject obtained as a result of parsing the literal token image.psyAbs()Returns thenumericabsolute value of this object.default PsyIntegraldefault PsyIntegralReturns anintegraldenominator of this fraction.default PsyIntegralpsyFloor()default PsyRationalpsyGCD(PsyRational oRational) Returns arationalrepresenting the greatest common divisor of this object and given object.default PsyIntegralpsyIdiv(PsyRational oRational) Returns the quotient of the integer division of thisrationalby therationaldivisor.default PsyIntegralpsyLCM(PsyIntegral oIntegral) Returns anintegralrepresenting the least common multiple of this object and given object.psyMod(PsyRational oRational) Returns anintegralrepresenting this object modulo given modulus.psyNeg()Returns theadditiveresult of arithmetic negation of this object.default PsyIntegralReturns anintegralnumerator of this fraction.default PsyIntegralpsyRound()default PsyIntegralMethods inherited from interface coneforest.psylla.core.PsyAdditive
isZero, psyIsZero, psyNonZeroMethods inherited from interface coneforest.psylla.core.PsyBitwise
psyBitShift, psyClearBit, psyFlipBit, psySetBit, psyTestBitMethods inherited from interface coneforest.psylla.core.PsyLogical
psyAnd, psyNot, psyOr, psyXorMethods inherited from interface coneforest.psylla.core.PsyNumeric
psySignumMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, psyType, toSyntaxString, typeNameMethods inherited from interface coneforest.psylla.core.PsyRational
bigIntegerValue, compareTo, psyAdd, psyDiv, psyLCM, psyMul, psyReciprocal, psySub, psyToRational, rationalValueMethods inherited from interface coneforest.psylla.core.PsyRealNumeric
doubleValue, imagValue, intValue, longValue, psyAcos, psyAdd, psyAsin, psyAtan, psyCbrt, psyCos, psyCosh, psyDiv, psyEq, psyExp, psyHypot, psyLog, psyMul, psyPow, psyPow, psySin, psySinh, psySqrt, psySub, psyTan, psyTanh, psyToInteger, psyToReal, realValue
-
Method Details
-
psyNumerator
Description copied from interface:PsyRationalReturns anintegralnumerator of this fraction.- Specified by:
psyNumeratorin interfacePsyRational- Returns:
- an
integralnumerator of this fraction
-
psyDenominator
Description copied from interface:PsyRationalReturns anintegraldenominator of this fraction.- Specified by:
psyDenominatorin interfacePsyRational- Returns:
- an
integraldenominator of this fraction
-
psyAbs
PsyIntegral psyAbs()Description copied from interface:PsyNumericReturns thenumericabsolute value of this object.- Specified by:
psyAbsin interfacePsyNumeric- Specified by:
psyAbsin interfacePsyRational- Specified by:
psyAbsin interfacePsyRealNumeric- Returns:
- the
numericabsolute value of this object
-
psyNeg
PsyIntegral psyNeg()Description copied from interface:PsyAdditiveReturns theadditiveresult of arithmetic negation of this object.- Specified by:
psyNegin interfacePsyAdditive<PsyNumeric>- Specified by:
psyNegin interfacePsyRational- Specified by:
psyNegin interfacePsyRealNumeric- Returns:
- the
additiveresult of arithmetic negation of this object
-
psyFloor
- Specified by:
psyFloorin interfacePsyRational- Specified by:
psyFloorin interfacePsyRealNumeric
-
psyCeiling
- Specified by:
psyCeilingin interfacePsyRational- Specified by:
psyCeilingin interfacePsyRealNumeric
-
psyRound
- Specified by:
psyRoundin interfacePsyRational- Specified by:
psyRoundin interfacePsyRealNumeric
-
psyIdiv
Description copied from interface:PsyRationalReturns the quotient of the integer division of thisrationalby therationaldivisor.- Specified by:
psyIdivin interfacePsyRational- Parameters:
oRational- the divisor.- Returns:
- the quotient of the integer division of this
rationalby therationaldivisor - Throws:
PsyUndefinedResultException- when the divisor is zero.
-
psyMod
PsyIntegral psyMod(PsyRational oRational) throws PsyRangeCheckException, PsyUndefinedResultException Description copied from interface:PsyRationalReturns anintegralrepresenting this object modulo given modulus.- Specified by:
psyModin interfacePsyRational- Parameters:
oRational- the given modulus.- Returns:
- an
integralrepresenting this object modulo given modulus - Throws:
PsyRangeCheckException- when the modulus is negative.PsyUndefinedResultException- when the modulus is zero.
-
psyGCD
Description copied from interface:PsyRationalReturns arationalrepresenting the greatest common divisor of this object and given object.- Specified by:
psyGCDin interfacePsyRational- Parameters:
oRational- the given object.- Returns:
- a
rationalrepresenting the greatest common divisor of this object and given object
-
psyLCM
Returns anintegralrepresenting the least common multiple of this object and given object.- Parameters:
oIntegral- given object.- Returns:
- the least common multiple of this object and given object.
-
psyToIntegral
- Specified by:
psyToIntegralin interfacePsyConvertableToIntegral- Specified by:
psyToIntegralin interfacePsyRational
-
of
-
of
-
parseLiteral
Returns theintegralobject obtained as a result of parsing the literal token image.- Parameters:
image- the literal token image.- Returns:
- the
integralobject obtained as a result of parsing the literal token image - Throws:
PsySyntaxErrorException- when the literal image is syntactically incorrect.
-