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.
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove
    • 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 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:
        java.lang.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