public final class ArrayQueue<E> extends Object
| Constructor and Description |
|---|
ArrayQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E x) |
default int |
addIndexOf(E x) |
void |
clear() |
default int |
indexOf(E x)
Returns the position in the pool, or -1 if the element is not present.
|
int |
internalCapacity() |
E |
peek() |
E |
poll() |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public void add(E x)
public E poll()
public E peek()
public void clear()
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] a)
public int internalCapacity()
public int addIndexOf(E x)
public int indexOf(E x)