public class SimpleQueue<E> extends Object
Constructor and Description |
---|
SimpleQueue() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all elements from the list
|
E |
get()
Returns an element (object) from queue.
|
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.
|
public void put(E o)
public E get()
null
if queue is emptypublic Object[] getAll()
public E peek()
public boolean isEmpty()
true
if queue is empty, otherwise false
public int size()
public void clear()
Processing library proJMS by Hauke Altmann. (C) 2012