Package ai.timefold.jpyinterpreter
Class PythonVersion
java.lang.Object
ai.timefold.jpyinterpreter.PythonVersion
- All Implemented Interfaces:
Comparable<PythonVersion>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PythonVersionstatic final PythonVersionstatic final PythonVersionstatic final PythonVersion -
Constructor Summary
ConstructorsConstructorDescriptionPythonVersion(int hexversion) PythonVersion(int major, int minor) PythonVersion(int major, int minor, int micro) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(PythonVersion pythonVersion) booleanintintintintintinthashCode()booleanisAfter(PythonVersion release) booleanisAtLeast(PythonVersion release) booleanisBefore(PythonVersion release) booleanisBetween(PythonVersion afterInclusive, PythonVersion beforeInclusive) toString()
-
Field Details
-
PYTHON_3_10
-
PYTHON_3_11
-
PYTHON_3_12
-
MINIMUM_PYTHON_VERSION
-
-
Constructor Details
-
PythonVersion
public PythonVersion(int hexversion) -
PythonVersion
public PythonVersion(int major, int minor) -
PythonVersion
public PythonVersion(int major, int minor, int micro)
-
-
Method Details
-
getMajorVersion
public int getMajorVersion() -
getMinorVersion
public int getMinorVersion() -
getMicroVersion
public int getMicroVersion() -
getReleaseLevel
public int getReleaseLevel() -
getReleaseSerial
public int getReleaseSerial() -
compareTo
- Specified by:
compareToin interfaceComparable<PythonVersion>
-
isBefore
-
isAfter
-
isAtLeast
-
isBetween
-
equals
-
hashCode
public int hashCode() -
toString
-