public class QueueListLifo<E extends Entity> extends QueueListStandard<E> implements java.beans.PropertyChangeListener
QueueBased
object. The QueueListLifo
has a reference to its QueueBased
object. This class needs a
reference to a subclass of QueueBased to update the queue statistics.
It is used in many kinds of queue implementations i.e. in classes
Queue
and ProcessQueue
.QueueList
,
QueueBased
,
Queue
,
ProcessQueue
Constructor and Description |
---|
QueueListLifo()
Constructs an empty
QueueListStandardFifo with no reference to its
client QueueBased. |
Modifier and Type | Method and Description |
---|---|
void |
insert(E e)
Adds a new Entity to the QueueListLifo.
|
contains, first, get, get, getAbbreviation, isEmpty, last, propertyChange, remove, remove, succ, toString
iterator, setQueueBased, size
public QueueListLifo()
QueueListStandardFifo
with no reference to its
client QueueBased. This no-arg constructor is necessary to instantiate an
object of this class by calling the
java.lang.Class.newInstance()
method. The reference to the
QueueBased object making use of this queue-functionality must be provided
later by calling the setQueueBased() method. The initial length is always
zero.public void insert(E e)
insert
in class QueueListStandard<E extends Entity>
e
- Entity : The Entity to add to the QueueListStandardLifo