Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.IntegerRangeListIterator
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
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 org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyListIterator
add, set
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface java.util.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()
-