public class Queue extends java.util.LinkedList
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deque()
Dequeues an object from the beginning of the queue
|
boolean |
empty()
Returns true is this queue is empty, false otherwise
|
boolean |
enque(java.lang.Object obj)
Enqueue's the specified object.
|
static void |
main(java.lang.String[] args) |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
containsAll, isEmpty, removeAll, retainAll, toString
public boolean enque(java.lang.Object obj)
Collection.add(Object)
public java.lang.Object deque()
java.util.NoSuchElementException
- if this list is empty.public boolean empty()
public static void main(java.lang.String[] args)