xxl.collections
Class StackQueue

java.lang.Object
  |
  +--xxl.collections.AbstractQueue
        |
        +--xxl.collections.StackQueue
Direct Known Subclasses:
ArrayQueue

public class StackQueue
extends AbstractQueue


Field Summary
static Function FACTORY_METHOD
          A factory method to create a new StackQueue.
protected  java.util.Stack stack
           
 
Fields inherited from class xxl.collections.AbstractQueue
FACTORY_METHOD
 
Constructor Summary
StackQueue()
           
StackQueue(java.util.Iterator iterator)
           
StackQueue(java.util.Stack stack)
           
 
Method Summary
 void clear()
           
 void insert(java.lang.Object object)
           
 java.lang.Object next()
           
 java.lang.Object peek()
           
 int size()
           
 boolean supportsPeek()
           
 
Methods inherited from class xxl.collections.AbstractQueue
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

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
Constructor Detail

StackQueue

public StackQueue(java.util.Stack stack)

StackQueue

public StackQueue()

StackQueue

public StackQueue(java.util.Iterator iterator)
Method Detail

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