public class MTreeQueue<T extends Comparable<T>> extends Object implements Queue<T>
| Constructor and Description |
|---|
MTreeQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear the queue items.
|
void |
deleteItem(T item)
Delete one item from the queue.
|
T |
firstItem() |
void |
insertItem(T item)
Insert one item into the Queue
|
T |
lastItem() |
String |
show()
Print out the queue element to the standard output
|
void |
show(PrintStream p)
Print out the queue element to the PrintStream p
|
public MTreeQueue()
public void deleteItem(T item)
QueuedeleteItem in interface Queue<T extends Comparable<T>>public void insertItem(T item)
QueueinsertItem in interface Queue<T extends Comparable<T>>public T firstItem()
firstItem in interface Queue<T extends Comparable<T>>public void show(PrintStream p)
Queueshow in interface Queue<T extends Comparable<T>>public String show()
Queueshow in interface Queue<T extends Comparable<T>>public void clear()
Queueclear in interface Queue<T extends Comparable<T>>