L
- the type of the containing listE
- the type of elements returned by this iterator@ParametersAreNonnullByDefault public class NonResolvingLazyIterator<L extends org.eclipse.emf.ecore.util.InternalEList<E>,E> extends LazyIterator<L,E>
LazyIterator
that does not resolve objects.containingList, cursor, expectedModCount, lastCursor, modCount, size
Constructor and Description |
---|
NonResolvingLazyIterator(L containingList,
IntSupplier modCount)
Constructs a new
NonResolvingLazyIterator . |
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. |
checkModCount, doRemove, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public NonResolvingLazyIterator(L containingList, IntSupplier modCount)
NonResolvingLazyIterator
.containingList
- the containing listmodCount
- the function to retrieve the modification count of the containing list@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.