|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.util.collection.SimpleQueue<E>
public class SimpleQueue<E>
Simple Queue (FIFO) based on LinkedList.
| Constructor Summary | |
|---|---|
SimpleQueue()
|
|
| Method Summary | |
|---|---|
E |
get()
Returns an element (object) from queue. |
java.lang.Object[] |
getAll()
Returns all elements from the queue and clears it. |
boolean |
isEmpty()
Returns true if queue is empty, otherwise false |
E |
peek()
Peeks an element in the queue. |
void |
put(E o)
Puts object in queue. |
int |
size()
Returns queue size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleQueue()
| Method Detail |
|---|
public void put(E o)
public E get()
null if queue is emptypublic java.lang.Object[] getAll()
public E peek()
public boolean isEmpty()
true if queue is empty, otherwise false
public int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||