public class

EventSetImpl

extends ArrayList<E>
implements EventSet
java.lang.Object
   ↳ java.util.AbstractCollection<E>
     ↳ java.util.AbstractList<E>
       ↳ java.util.ArrayList<E>
         ↳ com.sun.tools.jdi.EventSetImpl

Summary

Nested Classes
class EventSetImpl.Itr  
[Expand]
Inherited Fields
From class java.util.AbstractList
Public Methods
boolean add(Event o)
Appends the specified element to the end of this list.
boolean addAll(Collection<? extends Event> coll)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator.
void clear()
Removes all of the elements from this list.
EventIterator eventIterator()
Return an iterator specific to Event objects.
Iterator<Event> iterator()
Returns an iterator over the elements in this list in proper sequence.
boolean remove(Object o)
Removes the first occurrence of the specified element from this list, if it is present.
boolean removeAll(Collection<?> coll)
Removes from this list all of its elements that are contained in the specified collection.
void resume()
Resumes threads suspended by this event set.
boolean retainAll(Collection<?> coll)
Retains only the elements in this list that are contained in the specified collection.
int suspendPolicy()
Returns the policy used to suspend threads in the target VM for this event set.
String toString()
Returns a string representation of this collection.
VirtualMachine virtualMachine()
Gets the VirtualMachine to which this Mirror belongs.
[Expand]
Inherited Methods
From class java.util.ArrayList
From class java.util.AbstractList
From class java.util.AbstractCollection
From class java.lang.Object
From interface com.sun.jdi.Mirror
From interface com.sun.jdi.event.EventSet
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.List
From interface java.util.Set

Public Methods

public boolean add (Event o)

Appends the specified element to the end of this list.

Parameters
o element to be appended to this list
Returns
  • true (as specified by add(E))

public boolean addAll (Collection<? extends Event> coll)

Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's Iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this list, and this list is nonempty.)

Parameters
coll collection containing elements to be added to this list
Returns
  • true if this list changed as a result of the call

public void clear ()

Removes all of the elements from this list. The list will be empty after this call returns.

public EventIterator eventIterator ()

Return an iterator specific to Event objects.

public Iterator<Event> iterator ()

Returns an iterator over the elements in this list in proper sequence.

The returned iterator is fail-fast.

Returns
  • an iterator over the elements in this list in proper sequence

public boolean remove (Object o)

Removes the first occurrence of the specified element from this list, if it is present. If the list does not contain the element, it is unchanged. More formally, removes the element with the lowest index i such that (o==null ? get(i)==null : o.equals(get(i))) (if such an element exists). Returns true if this list contained the specified element (or equivalently, if this list changed as a result of the call).

Parameters
o element to be removed from this list, if present
Returns
  • true if this list contained the specified element

public boolean removeAll (Collection<?> coll)

Removes from this list all of its elements that are contained in the specified collection.

Parameters
coll collection containing elements to be removed from this list
Returns
  • true if this list changed as a result of the call

public void resume ()

Resumes threads suspended by this event set. If the suspendPolicy() is SUSPEND_ALL, a call to this method is equivalent to resume(). If the suspend policy is SUSPEND_EVENT_THREAD, a call to this method is equivalent to resume() for the event thread. Otherwise, a call to this method is a no-op.

public boolean retainAll (Collection<?> coll)

Retains only the elements in this list that are contained in the specified collection. In other words, removes from this list all of its elements that are not contained in the specified collection.

Parameters
coll collection containing elements to be retained in this list
Returns
  • true if this list changed as a result of the call

public int suspendPolicy ()

Returns the policy used to suspend threads in the target VM for this event set. This policy is selected from the suspend policies for each event's request; the target VM chooses the policy which suspends the most threads. The target VM suspends threads according to that policy and that policy is returned here. See EventRequest for the possible policy values.

In rare cases, the suspend policy may differ from the requested value if a ClassPrepareEvent has occurred in a debugger system thread. See thread() for details.

Returns

public String toString ()

Returns a string representation of this collection. The string representation consists of a list of the collection's elements in the order they are returned by its iterator, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (comma and space). Elements are converted to strings as by valueOf(Object).

Returns
  • a string representation of this collection

public VirtualMachine virtualMachine ()

Gets the VirtualMachine to which this Mirror belongs. A Mirror must be associated with a VirtualMachine to have any meaning.

Returns