Class AbstractProjectModificationEvent

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ProjectModificationRequestedEvent, ProjectModifiedEvent

public class AbstractProjectModificationEvent extends ProjectEvent
Base class for constructing events which relate to project modifications.

ProjectEvent.getProject() always returns the current persisted state for the project. Whether that matches the old values or the new values depends on the specific event, and will be documented on the derived event class.

See Also:
  • Field Details

    • newValue

      protected final Project newValue
    • oldValue

      protected final Project oldValue
  • Constructor Details

    • AbstractProjectModificationEvent

      public AbstractProjectModificationEvent(@Nonnull Object source, @Nonnull Project project, @Nonnull Project oldValue, @Nonnull Project newValue)
  • Method Details

    • getNewValue

      @Nonnull public Project getNewValue()
    • getOldValue

      @Nonnull public Project getOldValue()
    • isDescriptionChanged

      public boolean isDescriptionChanged()
    • isKeyChanged

      public boolean isKeyChanged()
    • isNameChanged

      public boolean isNameChanged()