Interface Change<T>

  • Type Parameters:
    T - the type of object being changed

    @Immutable(builder=false)
    public interface Change<T>
    Represents a change in the value of some object.
    Since:
    2.0.0
    • Method Detail

      • of

        static <T> Change<T> of​(T old,
                                T current)
      • old

        @Parameter
        T old()
        The previous value before the operation.
        Returns:
        the previous value
        Since:
        2.0.0
      • current

        @Parameter
        T current()
        The current value.
        Returns:
        the current value
        Since:
        2.0.0
      • changed

        default boolean changed()
        Get whether any change actually occurred.
        Returns:
        if a change occurred
        Since:
        2.0.0