|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectAbstractQueue<E>
public abstract class AbstractQueue<E>
Class to define an abstract queue
| Constructor Summary | |
|---|---|
AbstractQueue()
|
|
| Method Summary | |
|---|---|
boolean |
isEmpty()
Method to see if the queue is empty |
abstract E |
peek()
Peek at, but don't remove, the head of the queue |
abstract E |
pop()
Pop an object from the Queue |
abstract void |
push(E element)
Push an object onto the Queue |
abstract int |
size()
Return the size of a queue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractQueue()
| Method Detail |
|---|
public abstract void push(E element)
push in interface Queue<E>element - the element to add to the queuepublic abstract E peek()
peek in interface Queue<E>public abstract E pop()
pop in interface Queue<E>public abstract int size()
size in interface Queue<E>public boolean isEmpty()
isEmpty in interface Queue<E>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||