public class Queue
extends java.util.ArrayList
Queue
class provides the data structure of a queue.
title: SystemCoreLib
description: a queue
copyright: (c) 2012 thomas kaffka, born at 11/08/1959 in düsseldorf - germany , all rights reserved.
Constructor and Description |
---|
Queue()
The constructor
Queue creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
void |
addAtTail(java.lang.Object object)
The method
addAtTail adds an object to the queue's tail. |
java.lang.Object |
getFromHead()
The method
getFromHead gets the first object from the head of the queue. |
boolean |
hasElements()
The method
hasElements evaluates, if the queue has elements. |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public Queue()
Queue
creates a new instance(object) of the class.public boolean hasElements()
hasElements
evaluates, if the queue has elements.public void addAtTail(java.lang.Object object)
addAtTail
adds an object to the queue's tail.object
- a java object.public java.lang.Object getFromHead()
getFromHead
gets the first object from the head of the queue.