xxl.collections
Class AbstractQueue
java.lang.Object
|
+--xxl.collections.AbstractQueue
- Direct Known Subclasses:
- Heap, ListQueue, StackQueue, StreamQueue
- public abstract class AbstractQueue
- extends java.lang.Object
- implements Queue
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FACTORY_METHOD
public static final Function FACTORY_METHOD
- A factory method to create a new Queue.
It may be invoked with or without a given array.
(see contract for FACTORY_METHOD in interface Queue)
This field is set to Queue.FACTORY_METHOD.
AbstractQueue
public AbstractQueue()
AbstractQueue
public AbstractQueue(java.util.Iterator iterator)
insert
public abstract void insert(java.lang.Object object)
- Specified by:
- insert in interface Queue
size
public abstract int size()
- Specified by:
- size in interface Queue
next
public abstract java.lang.Object next()
throws java.util.NoSuchElementException
- Specified by:
- next in interface Queue
supportsPeek
public boolean supportsPeek()
- Specified by:
- supportsPeek in interface Queue
peek
public java.lang.Object peek()
throws java.lang.UnsupportedOperationException
- Specified by:
- peek in interface Queue
remove
public void remove()
throws java.lang.UnsupportedOperationException
insertAll
public void insertAll(java.util.Iterator objects)
- Specified by:
- insertAll in interface Queue
hasNext
public boolean hasNext()
- Specified by:
- hasNext in interface Queue
replace
public java.lang.Object replace(java.lang.Object object)
throws java.util.NoSuchElementException
- Specified by:
- replace in interface Queue
replaceAll
public java.util.Iterator replaceAll(java.util.Iterator iterator)
- Specified by:
- replaceAll in interface Queue
clear
public void clear()
- Specified by:
- clear in interface Queue
close
public void close()
- Specified by:
- close in interface Queue