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(@NonNull Iterator<? extends E> i, @NonNull Consumer<E> removeFunction, @NonNull IntSupplier modCountSupplier) FailFastIterator(@NonNull Iterator<? extends E> i, @NonNull 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
-
-
Method Details