Modifier and Type | Field and Description |
---|---|
private static final long |
Access | Constructor and Description |
---|---|
public | |
public | IdentityStack(E
the bottom element. o)Construct a new IdentityStack with the specified Object as the bottom element. |
Modifier and Type | Method and Description |
---|---|
public synchronized boolean | Returns: true if the stack contains the object.the Object to search for. o)Overrides java. Implements java. .equals() comparisons on elements.
|
public synchronized boolean | containsAll(Collection<?>
a collection whose elements will be tested for containment
in this Vector c)Overrides java. Implements java. |
public static < desired type E> IdentityStack | Returns: an IdentityStack instance.the Stack to copy; ignored if null. s)Get an IdentityStack containing the contents of the specified Stack. |
public synchronized int | Returns: the position of the object, -1 if not found.the Object to search for. o, int the position from which to search. pos)Overrides java. .equals() comparisons on elements.
|
public synchronized int | Returns: the position of the object, -1 if not found.the Object to search for. o, int the position from which to search (backward). pos)Overrides java. .equals() comparisons on elements.
|
public synchronized boolean | removeAll(Collection<?>
a collection of elements to be removed from the Vector c)Overrides java. Implements java. |
public synchronized boolean | retainAll(Collection<?>
a collection of elements to be retained in this Vector
(all other elements are removed) c)Overrides java. Implements java. |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
IdentityStack | back to summary |
---|---|
public IdentityStack() Default constructor. |
IdentityStack | back to summary |
---|---|
public IdentityStack(E o) Construct a new IdentityStack with the specified Object as the bottom element.
|
contains | back to summary |
---|---|
public synchronized boolean contains(Object o) Overrides java. Implements java. Override methods that use
|
containsAll | back to summary |
---|---|
public synchronized boolean containsAll(Collection<?> c) Overrides java. Implements java. Doc from java. Returns true if this Vector contains all of the elements in the specified Collection.
|
getInstance | back to summary |
---|---|
public static <E> IdentityStack Get an IdentityStack containing the contents of the specified Stack.
|
indexOf | back to summary |
---|---|
public synchronized int indexOf(Object o, int pos) Overrides java. Override methods that use
|
lastIndexOf | back to summary |
---|---|
public synchronized int lastIndexOf(Object o, int pos) Overrides java. Override methods that use
|
removeAll | back to summary |
---|---|
public synchronized boolean removeAll(Collection<?> c) Overrides java. Implements java. Doc from java. Removes from this Vector all of its elements that are contained in the specified Collection.
|
retainAll | back to summary |
---|---|
public synchronized boolean retainAll(Collection<?> c) Overrides java. Implements java. Doc from java. Retains only the elements in this Vector that are contained in the specified Collection. In other words, removes from this Vector all of its elements that are not contained in the specified Collection.
|