org.kohsuke.youdebug
Class ThreadList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<com.sun.jdi.ThreadReference>
          extended by org.kohsuke.youdebug.ThreadList
All Implemented Interfaces:
Iterable<com.sun.jdi.ThreadReference>, Collection<com.sun.jdi.ThreadReference>, Set<com.sun.jdi.ThreadReference>

public class ThreadList
extends AbstractSet<com.sun.jdi.ThreadReference>

Maintains a list of ThreadReferences that are in the target VM.

Author:
Kohsuke Kawaguchi

Method Summary
 com.sun.jdi.ThreadReference byName(String name)
          Gets a thread by its Thread.getName().
 com.sun.jdi.ThreadReference getAt(String name)
          threads[name] for Groovy
 boolean isEmpty()
           
 Iterator<com.sun.jdi.ThreadReference> iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, remove, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, remove, retainAll, toArray, toArray
 

Method Detail

size

public int size()
Specified by:
size in interface Collection<com.sun.jdi.ThreadReference>
Specified by:
size in interface Set<com.sun.jdi.ThreadReference>
Specified by:
size in class AbstractCollection<com.sun.jdi.ThreadReference>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<com.sun.jdi.ThreadReference>
Specified by:
isEmpty in interface Set<com.sun.jdi.ThreadReference>
Overrides:
isEmpty in class AbstractCollection<com.sun.jdi.ThreadReference>

iterator

public Iterator<com.sun.jdi.ThreadReference> iterator()
Specified by:
iterator in interface Iterable<com.sun.jdi.ThreadReference>
Specified by:
iterator in interface Collection<com.sun.jdi.ThreadReference>
Specified by:
iterator in interface Set<com.sun.jdi.ThreadReference>
Specified by:
iterator in class AbstractCollection<com.sun.jdi.ThreadReference>

byName

public com.sun.jdi.ThreadReference byName(String name)
Gets a thread by its Thread.getName().


getAt

public com.sun.jdi.ThreadReference getAt(String name)
threads[name] for Groovy



Copyright © 2013. All rights reserved.