FairBlockingQueue.FairIterator (Apache Tomcat 11.0.23 API Documentation)
Description: declaration: package: org.apache.tomcat.jdbc.pool, class: FairBlockingQueue, class: FairIterator

# Class FairBlockingQueue.FairIterator

java.lang.Object
org.apache.tomcat.jdbc.pool.FairBlockingQueue.FairIterator

All Implemented Interfaces:
  `Iterator<E>`

Enclosing class:
  `FairBlockingQueue<E>`

protected class FairBlockingQueue.FairIterator extends Object implements Iterator<E>
Iterator safe from concurrent modification exceptions.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FairIterator()`
  Creates a new FairIterator with a snapshot of the current queue contents.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasNext()`
  `E`
  `next()`
  `void`
  `remove()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface Iterator

  `forEachRemaining`

- ## Constructor Details

  - ### FairIterator

    public FairIterator()
    Creates a new FairIterator with a snapshot of the current queue contents.

- ## Method Details

  - ### hasNext

    public boolean hasNext()
    Specified by:
      `hasNext` in interface `Iterator<E>`

  - ### next

    public E next()
    Specified by:
      `next` in interface `Iterator<E>`

  - ### remove

    public void remove()
    Specified by:
      `remove` in interface `Iterator<E>`