Interface ValueChange<T>

Type Parameters:
T - the value type

public interface ValueChange<T>
Represents a value change
  • Method Details

    • previous

      @Nullable T previous()
      Returns:
      the previous value
    • current

      @Nullable T current()
      Returns:
      the current value
    • valueChange

      static <T> ValueChange<T> valueChange(@Nullable T previous, @Nullable T current)
      Instantiates a new ValueChange instance
      Type Parameters:
      T - the value type
      Parameters:
      previous - the previous value
      current - the current value
      Returns:
      a new ValueChange instance