Interface ConcurrentLinkedDeque.RemovalReportingIterator<E>

All Superinterfaces:
Iterator<E>
Enclosing class:
ConcurrentLinkedDeque<E>

@Deprecated(since="2021-05-27") public static interface ConcurrentLinkedDeque.RemovalReportingIterator<E> extends Iterator<E>
Deprecated.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Removes from the underlying collection the last element returned by this iterator and reports whether the current element was removed by the call.

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext, next, remove
  • Method Details

    • 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 to Iterator.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:
      IllegalStateException - if the next method has not yet been called, or the remove method has already been called after the last call to the next method