Interface FilteringAwareObserver


  • public interface FilteringAwareObserver
    A FilteringAwareObserver is the stateless-variant of an Observer which gets an explicit before as well as the after NodeState.

    It is used by the FilteringObserver (or more precisely by the FilteringDispatcher) to support skipping (ie filtering) of content changes.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void contentChanged​(@NotNull NodeState before, @NotNull NodeState after, @NotNull CommitInfo info)
      Equivalent to the state-full contentChanged() method of the Observer with one important difference being that this variation explicitly passes the before NodeState (thus the observer must in this case not remember the previous state)
    • Method Detail

      • contentChanged

        void contentChanged​(@NotNull
                            @NotNull NodeState before,
                            @NotNull
                            @NotNull NodeState after,
                            @NotNull
                            @NotNull CommitInfo info)
        Equivalent to the state-full contentChanged() method of the Observer with one important difference being that this variation explicitly passes the before NodeState (thus the observer must in this case not remember the previous state)
        Parameters:
        before - the before NodeState
        after - the after NodeState
        info - the associated CommitInfo