Class PythonBoolean
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.numeric.PythonInteger
ai.timefold.jpyinterpreter.types.numeric.PythonBoolean
- All Implemented Interfaces:
PythonLikeObject,Coercible,PythonNumber,PythonLikeComparable<PythonNumber>,PlanningImmutable,Comparable<PythonNumber>
-
Field Summary
FieldsFields inherited from class ai.timefold.jpyinterpreter.types.numeric.PythonInteger
ONE, TWO, value, ZEROFields 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 -
Method Summary
Modifier and TypeMethodDescription$getType()Returns the type describing the objectasString()booleanbooleaninthashCode()static booleanisTruthful(PythonLikeObject tested) not()static PythonLikeTypetoString()static PythonBooleanvalueOf(boolean result) Methods inherited from class ai.timefold.jpyinterpreter.types.numeric.PythonInteger
$method$__format__, $method$__format__, $method$__hash__, abs, add, add, add, asByte, asFloat, asInteger, bitwiseAnd, bitwiseAnd, bitwiseOr, bitwiseOr, bitwiseXor, bitwiseXor, ceilDivide, coerce, divmod, divmod, floorDivide, floorDivide, floorDivide, getValue, greaterThan, greaterThan, greaterThan, greaterThanOrEqual, greaterThanOrEqual, greaterThanOrEqual, invert, lessThan, lessThan, lessThan, lessThanOrEqual, lessThanOrEqual, lessThanOrEqual, modulo, modulo, modulo, multiply, multiply, multiply, negative, notEqual, notEqual, notEqual, power, power, power, power, pythonEquals, pythonEquals, pythonEquals, round, round, shiftLeft, shiftLeft, shiftRight, shiftRight, subtract, subtract, subtract, trueDivide, trueDivide, trueDivide, valueOf, valueOf, valueOf, valueOf, valueOfMethods inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
$deleteAttribute, $getAttributeOrNull, $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, $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
-
TRUE
-
FALSE
-
-
Method Details
-
registerMethods
-
getBooleanValue
public boolean getBooleanValue() -
not
-
isTruthful
-
asBoolean
- Overrides:
asBooleanin classPythonInteger
-
valueOf
-
$getType
Description copied from interface:PythonLikeObjectReturns the type describing the object- Specified by:
$getTypein interfacePythonLikeObject- Overrides:
$getTypein classAbstractPythonLikeObject- Returns:
- the type describing the object
-
$method$__str__
- Specified by:
$method$__str__in interfacePythonLikeObject- Overrides:
$method$__str__in classPythonInteger
-
toString
- Overrides:
toStringin classPythonInteger
-
equals
- Overrides:
equalsin classPythonInteger
-
hashCode
public int hashCode()- Overrides:
hashCodein classPythonInteger
-
asString
- Overrides:
asStringin classPythonInteger
-