java.lang.Object
org.jhotdraw8.collection.iterator.FailFastIterator<E>
- Type Parameters:
E- the element type
- All Implemented Interfaces:
Iterator<E>
An iterator that fails when a provided modification counter does not have an
expected value.
-
Constructor Summary
ConstructorsConstructorDescriptionFailFastIterator(Iterator<? extends E> i, Consumer<E> removeFunction, IntSupplier modCountSupplier) FailFastIterator(Iterator<? extends E> i, IntSupplier modCountSupplier) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
FailFastIterator
-
FailFastIterator
public FailFastIterator(Iterator<? extends E> i, Consumer<E> removeFunction, IntSupplier modCountSupplier)
-
-
Method Details