Package com.mongodb.internal.connection
Interface ConcurrentLinkedDeque.RemovalReportingIterator<E>
-
- All Superinterfaces:
java.util.Iterator<E>
- Enclosing class:
- ConcurrentLinkedDeque<E>
@Deprecated(since="2021-05-27") public static interface ConcurrentLinkedDeque.RemovalReportingIterator<E> extends java.util.Iterator<E>
Deprecated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
reportingRemove()
Deprecated.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()
Deprecated.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 thenext
method has not yet been called, or theremove
method has already been called after the last call to thenext
method
-
-