Class SettingUpdatedPayload<T>

java.lang.Object
com.j3d.engine.react.events.EventPayload<Setting<T>>
com.j3d.engine.react.events.payloads.SettingUpdatedPayload<T>
Type Parameters:
T - The specific type that the Setting object contains.

public class SettingUpdatedPayload<T> extends EventPayload<Setting<T>>
Event payload for when a Setting is updated via code.

This stores the oldValue and newValue of the setting.

Author:
Lehlogonolo Poole
See Also:
  • Field Details

    • newValue

      private final T newValue
    • oldValue

      private final T oldValue
  • Constructor Details

    • SettingUpdatedPayload

      public SettingUpdatedPayload(Setting<T> e, T old, T newValue)
  • Method Details

    • getOldValue

      public T getOldValue()
    • getNewValue

      public T getNewValue()