Class ThreeWayDiff

    • Constructor Detail

      • ThreeWayDiff

        public ThreeWayDiff​(ITwoWayDiff localChange,
                            ITwoWayDiff remoteChange)
        Create a three-way delta from the two changes. At least one change must be provided (i.e. either change may be null but at least one must be non-null).
        Parameters:
        localChange - the local change in the model object or null if there is no local change
        remoteChange - the remote change in the model object or null if there is no local change
    • Method Detail

      • getLocalChange

        public ITwoWayDiff getLocalChange()
        Description copied from interface: IThreeWayDiff
        Return the local change associated with this delta. If there is no local change, either a delta with kind IDiff.NO_CHANGE is returned or null may be returned.
        Specified by:
        getLocalChange in interface IThreeWayDiff
        Returns:
        the local change associated with this delta or null
      • getRemoteChange

        public ITwoWayDiff getRemoteChange()
        Description copied from interface: IThreeWayDiff
        Return the remote change associated with this delta. If there is no remote change, either a delta with kind IDiff.NO_CHANGE is returned or null may be returned.
        Specified by:
        getRemoteChange in interface IThreeWayDiff
        Returns:
        the remote change associated with this delta or null
      • toDiffString

        public java.lang.String toDiffString()
        Description copied from interface: IDiff
        Return a string that describes the difference represented by this node.
        Specified by:
        toDiffString in interface IDiff
        Overrides:
        toDiffString in class Diff
        Returns:
        a string that describes the difference represented by this node
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Diff