|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Queue<E>
Interface to define an abstract queue
Method Summary | |
---|---|
boolean |
isEmpty()
Method to see if the queue is empty |
E |
peek()
Peek at, but don't remove, the head of the queue |
E |
pop()
Pop an object from the Queue |
void |
push(E element)
Push an element onto the tail of the Queue |
int |
size()
Return the size of a queue |
Method Detail |
---|
void push(E element)
element
- the element to add to the queueE peek()
E pop()
int size()
boolean isEmpty()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |