|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--xxl.collections.AbstractQueue
|
+--xxl.collections.ListQueue
The ArrayQueue extends AbstractQueue using a List for the internal representation of the data.
| Field Summary | |
static Function |
FACTORY_METHOD
A factory method to create a new ListQueue. |
protected java.util.List |
list
The List used for the internal representation of the data. |
| Fields inherited from class xxl.collections.AbstractQueue |
FACTORY_METHOD |
| Constructor Summary | |
ListQueue()
Creates a new ListQueue by creating a LinkedList. |
|
ListQueue(java.util.Iterator iterator)
Creates a new ListQueue by creating a LinkedList. |
|
ListQueue(java.util.List list)
Creates a new ListQueue. |
|
ListQueue(java.util.List list,
java.util.Iterator iterator)
Creates a new ListQueue. |
|
| Method Summary | |
void |
insert(java.lang.Object object)
Appends an object to the end of the queue. |
java.lang.Object |
next()
Returns the next element in the iteration. |
java.lang.Object |
peek()
Shows the next element in the iteration without removing it. |
int |
size()
Returns the size of the Queue. |
boolean |
supportsPeek()
Returns true if the peek operation is supported by this PeekIterator. |
| Methods inherited from class xxl.collections.AbstractQueue |
clear,
close,
hasNext,
insertAll,
remove,
replace,
replaceAll |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final Function FACTORY_METHOD
protected java.util.List list
| Constructor Detail |
public ListQueue(java.util.List list)
list - the List to be used for the internal
representation of datapublic ListQueue()
public ListQueue(java.util.List list,
java.util.Iterator iterator)
list - the List to be used for the internal
representation of dataiterator - elements to be inserted into the queuepublic ListQueue(java.util.Iterator iterator)
iterator - elements to be inserted into the queue| Method Detail |
public void insert(java.lang.Object object)
object - object to be appended to the queue
public java.lang.Object peek()
throws java.util.NoSuchElementException
public java.lang.Object next()
throws java.util.NoSuchElementException
public int size()
public boolean supportsPeek()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||