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
        Returns:
        new instance of change detector
      • alwaysTrue

        @API(status=INTERNAL)
        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.
        Parameters:
        after - The state resulting from handing it to a transformer.