public class Queue extends LinkedList
Constructor and Description |
---|
Queue() |
Queue(Collection c) |
Modifier and Type | Method and Description |
---|---|
Object |
deque()
Dequeues an object from the beginning of the queue
|
boolean |
empty()
Returns true is this queue is empty, false otherwise
|
boolean |
enque(Object obj)
Enqueue's the specified object.
|
static void |
main(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
iterator
equals, hashCode, listIterator, subList
containsAll, isEmpty, removeAll, retainAll, toString
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
parallelStream, removeIf, stream
public Queue()
public Queue(Collection c)
public boolean enque(Object obj)
Collection.add(Object)
public Object deque()
NoSuchElementException
- if this list is empty.public boolean empty()