Package: groovy.util

## [Java] Class ObservableList.ElementClearedEvent

- groovy.util.ObservableList.ElementClearedEvent

-     public static class ObservableList.ElementClearedEvent
      extends ObservableList.ElementEvent

  Event fired when the list is cleared.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `ElementClearedEvent(Object source, List values)` Creates a cleared-list 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 ObservableList.ElementEvent` | `getChangeType, getIndex, getType, getTypeAsString`

- - ### Constructor Detail

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

      Creates a cleared-list 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