L
- the type of the containing listE
- the type of elements returned by this list iterator@ParametersAreNonnullByDefault public class NonResolvingLazyListIterator<L extends org.eclipse.emf.ecore.util.InternalEList<E>,E> extends LazyListIterator<L,E>
LazyListIterator
that does not resolve objects.containingList, cursor, expectedModCount, lastCursor, modCount, size
Constructor and Description |
---|
NonResolvingLazyListIterator(L containingList,
IntSupplier modCount)
Constructs a new
NonResolvingLazyListIterator . |
NonResolvingLazyListIterator(L containingList,
IntSupplier modCount,
int index)
Constructs a new
NonResolvingLazyListIterator . |
Modifier and Type | Method and Description |
---|---|
protected void |
checkNotReadOnly()
Ensures that this iterator is not read-only before executing a write operation.
|
protected E |
doGet(int index)
Returns the element at the specified
index in the containing list. |
add, doAdd, doSet, hasPrevious, nextIndex, previous, previousIndex, set
checkModCount, doRemove, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasNext, next, remove
forEachRemaining
public NonResolvingLazyListIterator(L containingList, IntSupplier modCount)
NonResolvingLazyListIterator
.containingList
- the containing listmodCount
- the function to retrieve the modification count of the containing listpublic NonResolvingLazyListIterator(L containingList, IntSupplier modCount, int index)
NonResolvingLazyListIterator
.containingList
- the containing listmodCount
- the function to retrieve the modification count of the containing listindex
- the starting index@Nonnull protected E doGet(int index)
LazyIterator
index
in the containing list.doGet
in class LazyIterator<L extends org.eclipse.emf.ecore.util.InternalEList<E>,E>
index
- index of the element to returnprotected void checkNotReadOnly()
LazyIterator
checkNotReadOnly
in class LazyIterator<L extends org.eclipse.emf.ecore.util.InternalEList<E>,E>
Copyright © 2013–2019 Atlanmod. All rights reserved.