Interface ConcurrentLinkedDeque.RemovalReportingIterator<E>

    • 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:
        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