- 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_SUB
Fields inherited from interface coneforest.psylla.core.PsyBitwise
PSY_BITSHIFT, PSY_CLEARBIT, PSY_FLIPBIT, PSY_SETBIT, PSY_TESTBIT
Fields inherited from interface coneforest.psylla.core.PsyConvertableToInteger
PSY_TOINTEGER
Fields inherited from interface coneforest.psylla.core.PsyConvertableToIntegral
PSY_TOINTEGRAL
Fields inherited from interface coneforest.psylla.core.PsyConvertableToRational
PSY_TORATIONAL
Fields inherited from interface coneforest.psylla.core.PsyConvertableToReal
PSY_TOREAL
Fields inherited from interface coneforest.psylla.core.PsyLogical
PSY_AND, PSY_NOT, PSY_OR, PSY_XOR
Fields inherited from interface coneforest.psylla.core.PsyMultiplicative
PSY_DIV, PSY_MUL, PSY_RECIPROCAL
Fields 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_TANH
Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPE
Fields inherited from interface coneforest.psylla.core.PsyRational
PSY_DENOMINATOR, PSY_GCD, PSY_IDIV, PSY_LCM, PSY_MOD, PSY_NUMERATOR
Fields inherited from interface coneforest.psylla.core.PsyRealNumeric
PSY_CEILING, PSY_FLOOR, PSY_HYPOT, PSY_ROUND
-
Method Summary
Modifier and TypeMethodDescriptionstatic PsyInteger
of
(long longValue) static PsyIntegral
of
(BigInteger bigIntegerValue) static PsyIntegral
parseLiteral
(String image) Returns theintegral
object obtained as a result of parsing the literal token image.psyAbs()
Returns thenumeric
absolute value of this object.default PsyIntegral
default PsyIntegral
Returns anintegral
denominator of this fraction.default PsyIntegral
psyFloor()
default PsyRational
psyGCD
(PsyRational oRational) Returns arational
representing the greatest common divisor of this object and given object.default PsyIntegral
psyIdiv
(PsyRational oRational) Returns the quotient of the integer division of thisrational
by therational
divisor.default PsyIntegral
psyLCM
(PsyIntegral oIntegral) Returns anintegral
representing the least common multiple of this object and given object.psyMod
(PsyRational oRational) Returns anintegral
representing this object modulo given modulus.psyNeg()
Returns theadditive
result of arithmetic negation of this object.default PsyIntegral
Returns anintegral
numerator of this fraction.default PsyIntegral
psyRound()
default PsyIntegral
Methods inherited from interface coneforest.psylla.core.PsyAdditive
isZero, psyIsZero, psyNonZero
Methods inherited from interface coneforest.psylla.core.PsyBitwise
psyBitShift, psyClearBit, psyFlipBit, psySetBit, psyTestBit
Methods inherited from interface coneforest.psylla.core.PsyLogical
psyAnd, psyNot, psyOr, psyXor
Methods inherited from interface coneforest.psylla.core.PsyNumeric
psySignum
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, invoke, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, psyType, toSyntaxString, typeName
Methods inherited from interface coneforest.psylla.core.PsyRational
bigIntegerValue, compareTo, psyAdd, psyDiv, psyLCM, psyMul, psyReciprocal, psySub, psyToRational, rationalValue
Methods 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:PsyRational
Returns anintegral
numerator of this fraction.- Specified by:
psyNumerator
in interfacePsyRational
- Returns:
- an
integral
numerator of this fraction
-
psyDenominator
Description copied from interface:PsyRational
Returns anintegral
denominator of this fraction.- Specified by:
psyDenominator
in interfacePsyRational
- Returns:
- an
integral
denominator of this fraction
-
psyAbs
PsyIntegral psyAbs()Description copied from interface:PsyNumeric
Returns thenumeric
absolute value of this object.- Specified by:
psyAbs
in interfacePsyNumeric
- Specified by:
psyAbs
in interfacePsyRational
- Specified by:
psyAbs
in interfacePsyRealNumeric
- Returns:
- the
numeric
absolute value of this object
-
psyNeg
PsyIntegral psyNeg()Description copied from interface:PsyAdditive
Returns theadditive
result of arithmetic negation of this object.- Specified by:
psyNeg
in interfacePsyAdditive<PsyNumeric>
- Specified by:
psyNeg
in interfacePsyRational
- Specified by:
psyNeg
in interfacePsyRealNumeric
- Returns:
- the
additive
result of arithmetic negation of this object
-
psyFloor
- Specified by:
psyFloor
in interfacePsyRational
- Specified by:
psyFloor
in interfacePsyRealNumeric
-
psyCeiling
- Specified by:
psyCeiling
in interfacePsyRational
- Specified by:
psyCeiling
in interfacePsyRealNumeric
-
psyRound
- Specified by:
psyRound
in interfacePsyRational
- Specified by:
psyRound
in interfacePsyRealNumeric
-
psyIdiv
Description copied from interface:PsyRational
Returns the quotient of the integer division of thisrational
by therational
divisor.- Specified by:
psyIdiv
in interfacePsyRational
- Parameters:
oRational
- the divisor.- Returns:
- the quotient of the integer division of this
rational
by therational
divisor - Throws:
PsyUndefinedResultException
- when the divisor is zero.
-
psyMod
PsyIntegral psyMod(PsyRational oRational) throws PsyRangeCheckException, PsyUndefinedResultException Description copied from interface:PsyRational
Returns anintegral
representing this object modulo given modulus.- Specified by:
psyMod
in interfacePsyRational
- Parameters:
oRational
- the given modulus.- Returns:
- an
integral
representing this object modulo given modulus - Throws:
PsyRangeCheckException
- when the modulus is negative.PsyUndefinedResultException
- when the modulus is zero.
-
psyGCD
Description copied from interface:PsyRational
Returns arational
representing the greatest common divisor of this object and given object.- Specified by:
psyGCD
in interfacePsyRational
- Parameters:
oRational
- the given object.- Returns:
- a
rational
representing the greatest common divisor of this object and given object
-
psyLCM
Returns anintegral
representing 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:
psyToIntegral
in interfacePsyConvertableToIntegral
- Specified by:
psyToIntegral
in interfacePsyRational
-
of
-
of
-
parseLiteral
Returns theintegral
object obtained as a result of parsing the literal token image.- Parameters:
image
- the literal token image.- Returns:
- the
integral
object obtained as a result of parsing the literal token image - Throws:
PsySyntaxErrorException
- when the literal image is syntactically incorrect.
-