Package org.eclipse.m2m.atl.emftvm.util
Class LazyList.UnionListIterator
java.lang.Object
- All Implemented Interfaces:
Iterator<E>,ListIterator<E>
ListIterator that returns first the elements of the underlying collection, then the elements of the other collection.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ListIterator<? extends E>protected booleanprotected booleanFields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.WrappedListIterator
inner -
Constructor Summary
ConstructorsConstructorDescriptionUnionListIterator(List<? extends E> s) Creates a newLazyList<E>.UnionListIteratorfor the underlying collection ands.UnionListIterator(List<? extends E> s, int index) Creates a newLazyList<E>.UnionListIteratorfor the underlying collection ands. -
Method Summary
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyListIterator
add, setMethods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface java.util.ListIterator
remove
-
Field Details
-
s
-
added
-
innerNext
protected boolean innerNext -
addedPrev
protected boolean addedPrev
-
-
Constructor Details
-
UnionListIterator
Creates a newLazyList<E>.UnionListIteratorfor the underlying collection ands.- Parameters:
s- the collection to union
-
UnionListIterator
Creates a newLazyList<E>.UnionListIteratorfor the underlying collection ands.- Parameters:
s- the collection to unionindex- the iterator starting index.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<E>- Specified by:
hasNextin interfaceListIterator<E>- Overrides:
hasNextin classLazyCollection<E>.WrappedListIterator
-
next
- Specified by:
nextin interfaceIterator<E>- Specified by:
nextin interfaceListIterator<E>- Overrides:
nextin classLazyCollection<E>.WrappedListIterator
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<E>- Overrides:
nextIndexin classLazyCollection<E>.WrappedListIterator
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<E>- Overrides:
hasPreviousin classLazyCollection<E>.WrappedListIterator
-
previous
- Specified by:
previousin interfaceListIterator<E>- Overrides:
previousin classLazyCollection<E>.WrappedListIterator
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<E>- Overrides:
previousIndexin classLazyCollection<E>.WrappedListIterator
-