Package ai.timefold.jpyinterpreter.types
Class PythonRange.RangeIterator
java.lang.Object
ai.timefold.jpyinterpreter.types.PythonRange.RangeIterator
- All Implemented Interfaces:
Iterator<PythonInteger>,ListIterator<PythonInteger>
- Enclosing class:
- PythonRange
-
Constructor Summary
ConstructorsConstructorDescriptionRangeIterator(PythonInteger startValue, PythonInteger stopValue, PythonInteger step, PythonInteger currentValue, int startOffset) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(PythonInteger pythonInteger) booleanhasNext()booleannext()intprevious()intvoidremove()voidset(PythonInteger pythonInteger) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
RangeIterator
public RangeIterator(PythonInteger startValue, PythonInteger stopValue, PythonInteger step, PythonInteger currentValue, int startOffset)
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<PythonInteger>- Specified by:
hasNextin interfaceListIterator<PythonInteger>
-
next
- Specified by:
nextin interfaceIterator<PythonInteger>- Specified by:
nextin interfaceListIterator<PythonInteger>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<PythonInteger>
-
previous
- Specified by:
previousin interfaceListIterator<PythonInteger>
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<PythonInteger>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<PythonInteger>
-
remove
public void remove()- Specified by:
removein interfaceIterator<PythonInteger>- Specified by:
removein interfaceListIterator<PythonInteger>
-
set
- Specified by:
setin interfaceListIterator<PythonInteger>
-
add
- Specified by:
addin interfaceListIterator<PythonInteger>
-