public class QueueReader<E> extends Object implements Iterator<E>
Modifier | Constructor and Description |
---|---|
protected |
QueueReader(E[] q,
int index) |
Modifier and Type | Method and Description |
---|---|
QueueReader<E> |
clone() |
boolean |
hasNext()
Returns true iff there is currently another object in the queue.
|
E |
next()
Returns (and removes) the next object in the queue, or null if there are none.
|
void |
remove() |
void |
remove(E o)
Removes an element from the underlying queue.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected QueueReader(E[] q, int index)
public E next()
public boolean hasNext()
public void remove(E o)
o
- The element to removepublic QueueReader<E> clone()
Copyright © 2020 Sable. All rights reserved.