public class IdentityStack<E>
extends java.util.Stack<E>
| Constructor and Description | 
|---|
| IdentityStack()Default constructor. | 
| IdentityStack(E o)Construct a new IdentityStack with the specified Object
 as the bottom element. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | contains(java.lang.Object o)Override methods that use  .equals()comparisons on elements. | 
| boolean | containsAll(java.util.Collection<?> c) | 
| static <E> IdentityStack<E> | getInstance(java.util.Stack<E> s)Get an IdentityStack containing the contents of the specified Stack. | 
| int | indexOf(java.lang.Object o,
       int pos)Override methods that use  .equals()comparisons on elements. | 
| int | lastIndexOf(java.lang.Object o,
           int pos)Override methods that use  .equals()comparisons on elements. | 
| boolean | removeAll(java.util.Collection<?> c) | 
| boolean | retainAll(java.util.Collection c) | 
add, add, addAll, addAll, addElement, capacity, clear, clone, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, listIterator, listIterator, remove, remove, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizepublic IdentityStack()
public IdentityStack(E o)
o - the bottom element.public static <E> IdentityStack<E> getInstance(java.util.Stack<E> s)
E - desired types - the Stack to copy; ignored if null.public boolean contains(java.lang.Object o)
.equals() comparisons on elements.public int indexOf(java.lang.Object o,
                   int pos)
.equals() comparisons on elements.indexOf in class java.util.Vector<E>o - the Object to search for.pos - the position from which to search.Vector.indexOf(Object, int)public int lastIndexOf(java.lang.Object o,
                       int pos)
.equals() comparisons on elements.lastIndexOf in class java.util.Vector<E>o - the Object to search for.pos - the position from which to search (backward).Vector.indexOf(Object, int)public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection c)