Package groovy.util

# Class ObservableSet.ElementClearedEvent

java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
groovy.util.ObservableSet.ElementEvent
groovy.util.ObservableSet.ElementClearedEvent

All Implemented Interfaces:
  `Serializable`

Enclosing class:
  ObservableSet<E>

public static class ObservableSet.ElementClearedEvent extends ObservableSet.ElementEvent
Event fired when the set is cleared.

See Also:
  - Serialized Form

- ## Field Summary

  ### Fields inherited from class java.util.EventObject

  `source`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ElementClearedEvent(Object source, List values)`
  Creates a cleared-set event.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List`
  `getValues()`
  Returns the removed elements.

  ### Methods inherited from class groovy.util.ObservableSet.ElementEvent

  `getChangeType, getType, getTypeAsString`

  ### Methods inherited from class java.beans.PropertyChangeEvent

  `getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId, toString`

  ### Methods inherited from class java.util.EventObject

  `getSource`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ElementClearedEvent

    public ElementClearedEvent(Object source, List values)
    Creates a cleared-set event.
    Parameters:
      `source` - the event source
      `values` - the removed elements

- ## Method Details

  - ### getValues

    public List getValues()
    Returns the removed elements.
    Returns:
      an unmodifiable view of removed elements