ch.panter.li.bi.util
Class ShieldableStack<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
ch.panter.li.bi.util.ShieldableArrayList<T>
ch.panter.li.bi.util.ShieldableStack<T>
- All Implemented Interfaces:
- ReadOnlyCollection<T>, ReadOnlyStack<T>, Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess
public class ShieldableStack<T>
- extends ShieldableArrayList<T>
- implements ReadOnlyStack<T>
- See Also:
- Serialized Form
Method Summary |
T |
peek()
Looks at the object at the top of this stack without removing it from the stack. |
T |
pop()
|
void |
push(T element)
|
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
ShieldableStack
public ShieldableStack()
peek
public final T peek()
throws EmptyStackException
- Description copied from interface:
ReadOnlyStack
- Looks at the object at the top of this stack without removing it from the stack.
- Specified by:
peek
in interface ReadOnlyStack<T>
- Returns:
- the object at the top of this stack
- Throws:
EmptyStackException
- if this stack is empty
pop
public final T pop()
throws EmptyStackException
- Throws:
EmptyStackException
push
public final void push(T element)
Copyright 2007-2007 SourceForge. All Rights Reserved.