Package groovy.util

Class ObservableSet.ElementEvent

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ObservableSet.ElementAddedEvent, ObservableSet.ElementClearedEvent, ObservableSet.ElementRemovedEvent, ObservableSet.MultiElementAddedEvent, ObservableSet.MultiElementRemovedEvent
Enclosing class:
ObservableSet<E>

public abstract static class ObservableSet.ElementEvent extends PropertyChangeEvent
Base event type for observable set content changes.
See Also:
  • Constructor Details

    • ElementEvent

      public ElementEvent(Object source, Object oldValue, Object newValue, ObservableSet.ChangeType type)
      Creates an element event.
      Parameters:
      source - the event source
      oldValue - the previous value payload
      newValue - the new value payload
      type - the specialized change type
  • Method Details

    • getType

      public int getType()
      Returns the specialized event type ordinal.
      Returns:
      the change type ordinal
    • getChangeType

      public ObservableSet.ChangeType getChangeType()
      Returns the specialized event type.
      Returns:
      the change type
    • getTypeAsString

      public String getTypeAsString()
      Returns the specialized event type name.
      Returns:
      the change type name