public class Queue<T> extends AbstractCollection<T>
Now (mostly) obsolete in the 1.5 JDK.
| Modifier and Type | Field and Description |
|---|---|
LinkedList<T> |
queue |
| Constructor and Description |
|---|
Queue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T object) |
void |
addAll(T[] list) |
void |
clear() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
T |
remove() |
int |
size() |
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic LinkedList<T> queue
public boolean add(T object)
add in interface Collection<T>add in class AbstractCollection<T>public T remove()
public int size()
size in interface Collection<T>size in class AbstractCollection<T>public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in class AbstractCollection<T>public void clear()
clear in interface Collection<T>clear in class AbstractCollection<T>public void addAll(T[] list)
Copyright © 2016 The American National Corpus. All rights reserved.