|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--java.util.Stack | +--org.ejtools.util.LimitedStack
Extension of the Stack class, which has a limited depth (FIFO stack). This class doesn't allow duplicates.
Field Summary | |
protected int |
maximumSize
Maximum number elements allowed in the stack |
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
LimitedStack()
Constructor for the LimitedStack object |
|
LimitedStack(int size)
Constructor for the LimitedStack object |
Method Summary | |
java.lang.Object |
push(java.lang.Object item)
Overrides the push method to limit the number of elements. |
Methods inherited from class java.util.Stack |
empty, peek, pop, 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, 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 java.util.List |
iterator, listIterator, listIterator |
Field Detail |
protected int maximumSize
Constructor Detail |
public LimitedStack()
public LimitedStack(int size)
size
- Depth size of the stackMethod Detail |
public java.lang.Object push(java.lang.Object item)
push
in class java.util.Stack
item
- Item to push onto the stack
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |