public class Queue<T>
extends java.lang.Object
Constructor and Description |
---|
Queue(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
addLast(T object) |
void |
clear() |
T |
get(int index) |
boolean |
isEmpty() |
T |
peekFirst() |
T |
peekLast() |
boolean |
process(Processor<? super T> processor) |
T |
pullFirst() |
T |
removeLast() |
T |
set(int index,
T value) |
int |
size() |
java.lang.Object [] |
toArray() |
T [] |
toArray(T[] array) |
java.util.List<T> |
toList() |
java.lang.String |
toString() |
public void addLast(T object)
public T removeLast()
public T peekLast()
public boolean isEmpty()
public int size()
public java.util.List<T> toList()
public java.lang.Object [] toArray()
public T pullFirst()
public T peekFirst()
public void clear()
public T get(int index)
public java.lang.String toString()
toString
in class java.lang.Object