Package: groovy.util

## [Java] Class ObservableSet.ElementClearedEvent

- groovy.util.ObservableSet.ElementClearedEvent

-     public static class ObservableSet.ElementClearedEvent
      extends ObservableSet.ElementEvent

  Event fired when the set is cleared.

- - ### Constructor Summary

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

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public List` | `getValues()` Returns the removed elements.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class ObservableSet.ElementEvent` | `getChangeType, getType, getTypeAsString`

- - ### Constructor Detail

    - #### public ElementClearedEvent(Object source, List values)

      Creates a cleared-set event.

      Parameters:
        `source` - the event source
        `values` - the removed elements

  - ### Method Detail

    - #### public List getValues()

      Returns the removed elements.

      Returns:
        an unmodifiable view of removed elements