gate.util
Class BumpyStack

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--java.util.Stack
                          |
                          +--gate.util.BumpyStack
All Implemented Interfaces:
Cloneable, Collection, List, Serializable

public class BumpyStack
extends Stack

Stacks that allow you to bump an element to the front.

See Also:
Serialized Form

Constructor Summary
BumpyStack()
           
 
Method Summary
 boolean bump(Object item)
          Bump an item to the front of the stack.
 
Methods inherited from class java.util.Stack
empty, peek, pop, push, search
 
Methods inherited from class java.util.Vector
add, 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, 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
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

BumpyStack

public BumpyStack()
Method Detail

bump

public boolean bump(Object item)
Bump an item to the front of the stack.
Parameters:
item - the item to bump
Returns:
true when the item was found, else false