Package ai.timefold.jpyinterpreter.types
Class PythonRange
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.PythonRange
- All Implemented Interfaces:
PythonLikeObject,Iterable<PythonInteger>,Collection<PythonInteger>,List<PythonInteger>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic PythonLikeTypefinal PythonIntegerfinal PythonIntegerfinal PythonIntegerFields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int i, PythonInteger pythonInteger) booleanadd(PythonInteger pythonInteger) booleanaddAll(int i, Collection<? extends PythonInteger> collection) booleanaddAll(Collection<? extends PythonInteger> collection) voidclear()booleanbooleancontainsAll(Collection<?> collection) get(int i) getItem(PythonInteger index) intbooleanisEmpty()isObjectInRange(PythonLikeObject query) iterator()intlistIterator(int i) remove(int i) booleanbooleanremoveAll(Collection<?> collection) booleanretainAll(Collection<?> collection) set(int i, PythonInteger pythonInteger) intsize()subList(int startIndexInclusive, int endIndexExclusive) Object[]toArray()<T> T[]toArray(T[] ts) Methods inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
$deleteAttribute, $getAttributeOrNull, $getType, $setAttribute, getExtraAttributeMap, setAttribute, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliteratorMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $getGenericType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__getattribute__, $method$__hash__, $method$__ne__, $method$__repr__, $method$__setattr__, $method$__str__
-
Field Details
-
$TYPE
-
start
-
stop
-
step
-
-
Constructor Details
-
PythonRange
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<PythonInteger>- Specified by:
sizein interfaceList<PythonInteger>
-
getLength
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<PythonInteger>- Specified by:
isEmptyin interfaceList<PythonInteger>
-
contains
- Specified by:
containsin interfaceCollection<PythonInteger>- Specified by:
containsin interfaceList<PythonInteger>
-
isObjectInRange
-
iterator
- Specified by:
iteratorin interfaceCollection<PythonInteger>- Specified by:
iteratorin interfaceIterable<PythonInteger>- Specified by:
iteratorin interfaceList<PythonInteger>
-
getPythonIterator
-
toArray
- Specified by:
toArrayin interfaceCollection<PythonInteger>- Specified by:
toArrayin interfaceList<PythonInteger>
-
toArray
public <T> T[] toArray(T[] ts) - Specified by:
toArrayin interfaceCollection<PythonInteger>- Specified by:
toArrayin interfaceList<PythonInteger>
-
containsAll
- Specified by:
containsAllin interfaceCollection<PythonInteger>- Specified by:
containsAllin interfaceList<PythonInteger>
-
get
- Specified by:
getin interfaceList<PythonInteger>
-
getItem
-
indexOf
- Specified by:
indexOfin interfaceList<PythonInteger>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<PythonInteger>
-
listIterator
- Specified by:
listIteratorin interfaceList<PythonInteger>
-
listIterator
- Specified by:
listIteratorin interfaceList<PythonInteger>
-
subList
- Specified by:
subListin interfaceList<PythonInteger>
-
addAll
- Specified by:
addAllin interfaceCollection<PythonInteger>- Specified by:
addAllin interfaceList<PythonInteger>
-
addAll
- Specified by:
addAllin interfaceList<PythonInteger>
-
removeAll
- Specified by:
removeAllin interfaceCollection<PythonInteger>- Specified by:
removeAllin interfaceList<PythonInteger>
-
retainAll
- Specified by:
retainAllin interfaceCollection<PythonInteger>- Specified by:
retainAllin interfaceList<PythonInteger>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<PythonInteger>- Specified by:
clearin interfaceList<PythonInteger>
-
set
- Specified by:
setin interfaceList<PythonInteger>
-
add
- Specified by:
addin interfaceList<PythonInteger>
-
remove
- Specified by:
removein interfaceList<PythonInteger>
-
add
- Specified by:
addin interfaceCollection<PythonInteger>- Specified by:
addin interfaceList<PythonInteger>
-
remove
- Specified by:
removein interfaceCollection<PythonInteger>- Specified by:
removein interfaceList<PythonInteger>
-