|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
java.util.Stack<E>
org.apache.tools.ant.util.IdentityStack<E>
public class IdentityStack<E>
Identity Stack.
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
IdentityStack()
Default constructor. |
|
IdentityStack(E o)
Construct a new IdentityStack with the specified Object as the bottom element. |
|
| Method Summary | ||
|---|---|---|
boolean |
contains(java.lang.Object o)
Override methods that use .equals() comparisons on elements. |
|
boolean |
containsAll(java.util.Collection<?> c)
|
|
static
|
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)
|
|
| 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, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, remove, remove, removeAllElements, removeElement, removeElementAt, removeRange, 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 |
| Constructor Detail |
|---|
public IdentityStack()
public IdentityStack(E o)
o - the bottom element.| Method Detail |
|---|
public static <E> IdentityStack<E> getInstance(java.util.Stack<E> s)
s - the Stack to copy; ignored if null.
public boolean contains(java.lang.Object o)
.equals() comparisons on elements.
contains in interface java.util.Collection<E>contains in interface java.util.List<E>contains in class java.util.Vector<E>o - the Object to search for.
Vector.contains(Object)
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)
removeAll in interface java.util.Collection<E>removeAll in interface java.util.List<E>removeAll in class java.util.Vector<E>public boolean retainAll(java.util.Collection c)
retainAll in interface java.util.Collection<E>retainAll in interface java.util.List<E>retainAll in class java.util.Vector<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E>containsAll in interface java.util.List<E>containsAll in class java.util.Vector<E>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||