Class LazyCollection.IntegerRangeListIterator
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<Integer>
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyListIterator<Integer>
org.eclipse.m2m.atl.emftvm.util.LazyCollection.IntegerRangeListIterator
- All Implemented Interfaces:
Iterator<Integer>, ListIterator<Integer>
- Enclosing class:
LazyCollection<E>
public static class LazyCollection.IntegerRangeListIterator
extends LazyCollection.ReadOnlyListIterator<Integer>
LazyCollection.ReadOnlyIterator for Integer ranges.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIntegerRangeListIterator(int first, int last) Creates a newLazyCollection.IntegerRangeListIterator.IntegerRangeListIterator(int first, int last, int index) Creates a newLazyCollection.IntegerRangeListIterator. -
Method Summary
Methods inherited from class LazyCollection.ReadOnlyListIterator
add, setMethods inherited from class LazyCollection.ReadOnlyIterator
removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemainingMethods inherited from interface ListIterator
remove
-
Field Details
-
first
protected final int first -
last
protected final int last -
index
protected int index
-
-
Constructor Details
-
IntegerRangeListIterator
public IntegerRangeListIterator(int first, int last) Creates a newLazyCollection.IntegerRangeListIterator.- Parameters:
first- the first element of the rangelast- the last element of the range
-
IntegerRangeListIterator
public IntegerRangeListIterator(int first, int last, int index) Creates a newLazyCollection.IntegerRangeListIterator.- Parameters:
first- the first element of the rangelast- the last element of the rangeindex- the starting index of the list iterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
hasPrevious
public boolean hasPrevious() -
previous
-
nextIndex
public int nextIndex() -
previousIndex
public int previousIndex()
-