Interface ChangeDetector<T>

    • Method Detail

      • forImmutables

        static <T> ChangeDetector<T> forImmutables()
        A change detector that can be used for immutable types that implement an equals() method
        Type Parameters:
        T - the type of the stateful object
        new instance of change detector
      • alwaysTrue

        static <T> ChangeDetector<T> alwaysTrue()
      • before

        void before​(T before)
        Get and remember the state before it is handed to a transformer.
      • hasChanged

        boolean hasChanged​(T after)
        Determine if the state object has changed.
        after - The state resulting from handing it to a transformer.