xxl.collections
Class StackQueue
java.lang.Object
|
+--xxl.collections.AbstractQueue
|
+--xxl.collections.StackQueue
- Direct Known Subclasses:
- ArrayQueue
- public class StackQueue
- extends AbstractQueue
| 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 StackQueue.
It may be invoked with or without a given Stack.
(see contract for FACTORY_METHOD in interface Queue)
stack
protected java.util.Stack stack
StackQueue
public StackQueue(java.util.Stack stack)
StackQueue
public StackQueue()
StackQueue
public StackQueue(java.util.Iterator iterator)
insert
public void insert(java.lang.Object object)
- Overrides:
- insert in class AbstractQueue
size
public int size()
- Overrides:
- size in class AbstractQueue
peek
public java.lang.Object peek()
throws java.util.NoSuchElementException
- Overrides:
- peek in class AbstractQueue
next
public java.lang.Object next()
throws java.util.NoSuchElementException
- Overrides:
- next in class AbstractQueue
supportsPeek
public boolean supportsPeek()
- Overrides:
- supportsPeek in class AbstractQueue
clear
public void clear()
- Overrides:
- clear in class AbstractQueue