Package com.mongodb.internal.connection
Interface ConcurrentLinkedDeque.RemovalReportingIterator<E>
-
- All Superinterfaces:
java.util.Iterator<E>
- Enclosing class:
- ConcurrentLinkedDeque<E>
public static interface ConcurrentLinkedDeque.RemovalReportingIterator<E> extends java.util.Iterator<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanreportingRemove()Removes from the underlying collection the last element returned by this iterator and reports whether the current element was removed by the call.
-
-
-
Method Detail
-
reportingRemove
boolean reportingRemove()
Removes from the underlying collection the last element returned by this iterator and reports whether the current element was removed by the call. This method can be called only once per call toIterator.next().- Returns:
- true if the element was successfully removed by this call, false if the element had already been removed by a concurrent removal
- Throws:
java.lang.IllegalStateException- if thenextmethod has not yet been called, or theremovemethod has already been called after the last call to thenextmethod
-
-