|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--java.util.Stack | +--de.rwth.dfa.StackWorklist
A work list implementation using stacks.
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
StackWorklist()
Creates a new StackWorklist instance. |
Method Summary | |
boolean |
add(java.lang.Object o)
Adds a new element on top of the stack. |
java.lang.Object |
get()
Gets the last recently added element. |
void |
moveToFront(java.lang.Object o)
Moves the element to the top of this stack. |
Methods inherited from class java.util.Stack |
empty, peek, pop, push, search |
Methods inherited from class java.util.Vector |
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.rwth.dfa.Worklist |
isEmpty, size |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public StackWorklist()
StackWorklist
instance.Method Detail |
public boolean add(java.lang.Object o)
add
in interface Worklist
add
in class java.util.Vector
o
- an Object
valueboolean
valuepublic java.lang.Object get() throws java.util.NoSuchElementException
get
in interface Worklist
Object
valuejava.util.NoSuchElementException
- if an error occurspublic void moveToFront(java.lang.Object o) throws java.util.NoSuchElementException
moveToFront
in interface Worklist
o
- an Object
valuejava.util.NoSuchElementException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |