Method Summary |
|
public synchronized boolean | contains(Object o) Override methods that use .equals() comparisons on elements.
Parameters: o - the Object to search for. |
public static IdentityStack | getInstance(Stack s) Get an IdentityStack containing the contents of the specified Stack.
Parameters: s - the Stack to copy; ignored if null. |
public synchronized int | indexOf(Object o, int pos) Override methods that use .equals() comparisons on elements.
Parameters: o - the Object to search for. Parameters: pos - the position from which to search. |
public synchronized int | lastIndexOf(Object o, int pos) Override methods that use .equals() comparisons on elements.
Parameters: o - the Object to search for. Parameters: pos - the position from which to search (backward). |