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