Class PythonInteger
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.numeric.PythonInteger
- All Implemented Interfaces:
PythonLikeObject,Coercible,PythonNumber,PythonLikeComparable<PythonNumber>,PlanningImmutable,Comparable<PythonNumber>
- Direct Known Subclasses:
PythonBoolean
public class PythonInteger
extends AbstractPythonLikeObject
implements PythonNumber, PlanningImmutable, Coercible
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PythonIntegerstatic final PythonIntegerfinal BigIntegerstatic final PythonIntegerFields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPEFields inherited from interface ai.timefold.jpyinterpreter.types.numeric.PythonNumber
INFINITY_HASH_VALUE, MODULUS, NUMBER_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionPythonInteger(long value) PythonInteger(PythonLikeType type) PythonInteger(PythonLikeType type, BigInteger value) PythonInteger(BigInteger value) -
Method Summary
Modifier and TypeMethodDescription$method$__format__(PythonLikeObject specObject) abs()add(PythonLikeObject other) add(PythonFloat other) add(PythonInteger other) byteasByte()asFloat()asString()bitwiseAnd(PythonLikeObject other) bitwiseAnd(PythonInteger other) bitwiseOr(PythonLikeObject other) bitwiseOr(PythonInteger other) bitwiseXor(PythonLikeObject other) bitwiseXor(PythonInteger other) ceilDivide(PythonFloat other) <T> Tdivmod(PythonFloat other) divmod(PythonInteger other) booleanfloorDivide(PythonLikeObject other) floorDivide(PythonFloat other) floorDivide(PythonInteger other) getValue()greaterThan(PythonLikeObject other) greaterThan(PythonFloat other) greaterThan(PythonInteger other) greaterThanOrEqual(PythonFloat other) greaterThanOrEqual(PythonInteger other) inthashCode()invert()lessThan(PythonLikeObject other) lessThan(PythonFloat other) lessThan(PythonInteger other) lessThanOrEqual(PythonLikeObject other) lessThanOrEqual(PythonFloat other) lessThanOrEqual(PythonInteger other) modulo(PythonLikeObject other) modulo(PythonFloat other) modulo(PythonInteger other) multiply(PythonLikeObject other) multiply(PythonFloat other) multiply(PythonInteger other) negative()notEqual(PythonLikeObject other) notEqual(PythonFloat other) notEqual(PythonInteger other) power(PythonLikeObject other) power(PythonFloat other) power(PythonInteger other) power(PythonInteger exponent, PythonInteger modulus) pythonEquals(PythonLikeObject other) pythonEquals(PythonFloat other) pythonEquals(PythonInteger other) round()round(PythonInteger digitsAfterDecimal) shiftLeft(PythonLikeObject other) shiftLeft(PythonInteger other) shiftRight(PythonLikeObject other) shiftRight(PythonInteger other) subtract(PythonLikeObject other) subtract(PythonFloat other) subtract(PythonInteger other) toString()trueDivide(PythonLikeObject other) trueDivide(PythonFloat other) trueDivide(PythonInteger other) static PythonIntegervalueOf(byte value) static PythonIntegervalueOf(int value) static PythonIntegervalueOf(long value) static PythonIntegervalueOf(short value) static PythonIntegervalueOf(BigInteger value) Methods inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
$deleteAttribute, $getAttributeOrNull, $getType, $setAttribute, getExtraAttributeMap, setAttributeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.types.PythonLikeComparable
greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqualMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$deleteAttribute, $getAttributeOrError, $getAttributeOrNull, $getGenericType, $getType, $method$__delattr__, $method$__eq__, $method$__getattribute__, $method$__ne__, $method$__repr__, $method$__setattr__, $setAttributeMethods inherited from interface ai.timefold.jpyinterpreter.types.numeric.PythonNumber
compareTo
-
Field Details
-
value
-
ZERO
-
ONE
-
TWO
-
-
Constructor Details
-
PythonInteger
-
PythonInteger
-
PythonInteger
public PythonInteger(long value) -
PythonInteger
-
-
Method Details
-
getValue
- Specified by:
getValuein interfacePythonNumber
-
$method$__str__
- Specified by:
$method$__str__in interfacePythonLikeObject
-
toString
- Overrides:
toStringin classAbstractPythonLikeObject
-
asByte
public byte asByte() -
equals
-
hashCode
public int hashCode() -
$method$__hash__
- Specified by:
$method$__hash__in interfacePythonLikeObject
-
valueOf
-
valueOf
-
valueOf
-
valueOf
-
valueOf
-
asBoolean
-
asInteger
-
asFloat
-
negative
-
invert
-
abs
-
add
-
add
-
add
-
subtract
-
subtract
-
subtract
-
multiply
-
multiply
-
multiply
-
trueDivide
-
trueDivide
-
trueDivide
-
floorDivide
-
floorDivide
-
floorDivide
-
ceilDivide
-
modulo
-
modulo
-
modulo
-
divmod
-
divmod
-
round
-
round
-
power
-
power
-
power
-
power
-
shiftLeft
-
shiftLeft
-
shiftRight
-
shiftRight
-
bitwiseAnd
-
bitwiseAnd
-
bitwiseOr
-
bitwiseOr
-
bitwiseXor
-
bitwiseXor
-
pythonEquals
-
notEqual
-
lessThan
-
lessThanOrEqual
-
greaterThan
-
greaterThanOrEqual
-
pythonEquals
-
notEqual
-
lessThan
-
lessThanOrEqual
-
greaterThan
-
greaterThanOrEqual
-
pythonEquals
-
notEqual
-
lessThan
-
lessThanOrEqual
-
greaterThan
-
greaterThanOrEqual
-
asString
-
$method$__format__
- Specified by:
$method$__format__in interfacePythonLikeObject
-
$method$__format__
- Specified by:
$method$__format__in interfacePythonLikeObject
-
coerce
-