edu.rice.cs.drjava.model.debug.jpda
Class JPDADebugger.RandomAccessStack
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
java.util.Stack<com.sun.jdi.ThreadReference>
edu.rice.cs.drjava.model.debug.jpda.JPDADebugger.RandomAccessStack
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<com.sun.jdi.ThreadReference>, Collection<com.sun.jdi.ThreadReference>, List<com.sun.jdi.ThreadReference>, RandomAccess
- Enclosing class:
- JPDADebugger
private static class JPDADebugger.RandomAccessStack
- extends Stack<com.sun.jdi.ThreadReference>
A thread-safe stack from which you can remove any element, not just the top of the stack. All synchronization is
performed on the wrapped vector.
TODO: make a generic Collection extending/replacing Stack.
|
Method Summary |
boolean |
contains(long id)
|
boolean |
isEmpty()
|
com.sun.jdi.ThreadReference |
peekAt(int i)
|
com.sun.jdi.ThreadReference |
remove(long id)
|
| Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
JPDADebugger.RandomAccessStack
private JPDADebugger.RandomAccessStack()
peekAt
public com.sun.jdi.ThreadReference peekAt(int i)
remove
public com.sun.jdi.ThreadReference remove(long id)
throws NoSuchElementException
- Throws:
NoSuchElementException
contains
public boolean contains(long id)
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<com.sun.jdi.ThreadReference>- Specified by:
isEmpty in interface List<com.sun.jdi.ThreadReference>- Overrides:
isEmpty in class Vector<com.sun.jdi.ThreadReference>