Interface Change<T>

Type Parameters:
T - the value type

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

    • previous

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

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

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