Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.IteratorToListIterator
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
LazyCollection<E>.CachingIterator
org.eclipse.m2m.atl.emftvm.util.LazyCollection.IteratorToListIterator
- All Implemented Interfaces:
Iterator<E>
,ListIterator<E>
- Enclosing class:
- LazyCollection<E>
public class LazyCollection.IteratorToListIterator
extends LazyCollection<E>.CachingIterator
implements ListIterator<E>
-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
i, inner
-
Constructor Summary
ConstructorDescriptionCreates a newLazyCollection<E>.IteratorToListIterator
for thisLazyList
.IteratorToListIterator
(int index) Creates a newLazyCollection<E>.IteratorToListIterator
for thisLazyList
. -
Method Summary
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
hasNext, updateCache
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
hasNext, remove
-
Constructor Details
-
IteratorToListIterator
public IteratorToListIterator()Creates a newLazyCollection<E>.IteratorToListIterator
for thisLazyList
. -
IteratorToListIterator
public IteratorToListIterator(int index) Creates a newLazyCollection<E>.IteratorToListIterator
for thisLazyList
.- Parameters:
index
- the iterator starting index.
-
-
Method Details
-
add
Unsupported.- Specified by:
add
in interfaceListIterator<E>
- Parameters:
o
- the object to add- Throws:
UnsupportedOperationException
-
set
Unsupported.- Specified by:
set
in interfaceListIterator<E>
- Parameters:
o
- the object to set- Throws:
UnsupportedOperationException
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<E>
-
next
- Specified by:
next
in interfaceIterator<E>
- Specified by:
next
in interfaceListIterator<E>
- Overrides:
next
in classLazyCollection<E>.CachingIterator
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<E>
-
previous
- Specified by:
previous
in interfaceListIterator<E>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<E>
-