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(Collection<E> toRemove)
Removes elements from the underlying queue.
|
void |
remove(E o)
Removes an element from the underlying queue.
|
protected boolean |
skip(Object ret) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected E[] q
protected int index
protected QueueReader(E[] q, int index)
public E next()
protected boolean skip(Object ret)
public boolean hasNext()
public void remove(E o)
o - The element to removepublic void remove(Collection<E> toRemove)
toRemove - The elements to removepublic QueueReader<E> clone()
Copyright © 2020 Soot OSS. All rights reserved.