Interface AttachmentEvents.Changing

Enclosing class:
AttachmentEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface AttachmentEvents.Changing
A value is about to be added, changed or removed by code on this side (not by a sync from the server). Changes a Trackable value makes to itself can't be cancelled.
  • Method Details

    • onChanging

      EventResultHolder<Object> onChanging(AttachmentHolder holder, Attachment<?> attachment, @Nullable @Nullable Object oldValue, @Nullable @Nullable Object newValue)
      Parameters:
      oldValue - the stored value, null when there's none (an add)
      newValue - the value to store, null for a removal; for an in-place modify, the same object as oldValue, not yet changed