public class TidSet extends UnsortedArrayIntSet implements ThreadInfoSet, Memento<ThreadInfoSet>
Modifier and Type | Field and Description |
---|---|
protected VM |
vm |
elements, size
Constructor and Description |
---|
TidSet(ThreadInfo ti) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(ThreadInfo ti) |
boolean |
contains(ThreadInfo ti) |
Memento<ThreadInfoSet> |
getMemento() |
boolean |
hasMultipleLiveThreads() |
boolean |
hasMultipleRunnableThreads() |
boolean |
remove(ThreadInfo ti) |
ThreadInfoSet |
restore(ThreadInfoSet inSitu)
note that there is no guarantee the restored object will be the same that
is (optionally) passed in.
|
String |
toString() |
add, contains, remove
clear, clone, equals, hashCode, intIterator, isEmpty, size
finalize, getClass, notify, notifyAll, wait, wait, wait
size
protected VM vm
public TidSet(ThreadInfo ti)
public boolean add(ThreadInfo ti)
add
in interface ThreadInfoSet
public boolean remove(ThreadInfo ti)
remove
in interface ThreadInfoSet
public boolean contains(ThreadInfo ti)
contains
in interface ThreadInfoSet
public boolean hasMultipleLiveThreads()
hasMultipleLiveThreads
in interface ThreadInfoSet
public boolean hasMultipleRunnableThreads()
hasMultipleRunnableThreads
in interface ThreadInfoSet
public String toString()
toString
in class ArrayIntSet
public Memento<ThreadInfoSet> getMemento()
getMemento
in interface ThreadInfoSet
public ThreadInfoSet restore(ThreadInfoSet inSitu)
Memento
restore
in interface Memento<ThreadInfoSet>