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)
Queue
deleteItem
in interface Queue<T extends Comparable<T>>
public void insertItem(T item)
Queue
insertItem
in interface Queue<T extends Comparable<T>>
public T firstItem()
firstItem
in interface Queue<T extends Comparable<T>>
public void show(PrintStream p)
Queue
show
in interface Queue<T extends Comparable<T>>
public String show()
Queue
show
in interface Queue<T extends Comparable<T>>
public void clear()
Queue
clear
in interface Queue<T extends Comparable<T>>