Package ro.sync.merge

Class MergeResult


  • @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public class MergeResult
    extends java.lang.Object
    Defines the result of a three way merge.
    Since:
    18.0
    • Constructor Detail

      • MergeResult

        public MergeResult​(MergeResult.ResultType resultType,
                           java.lang.String mergedString)
        Constructor.
        Parameters:
        resultType - The type of the merge result.
        mergedString - The merged string.
      • MergeResult

        public MergeResult​(MergeResult.ResultType resultType,
                           java.lang.String mergedString,
                           java.lang.Boolean mergingOccurred)
        Constructor.
        Parameters:
        resultType - The type of the merge result.
        mergedString - The merged string.
        mergingOccurred - Flag telling whether merging occurred or not. If the two left|right files were identical mergingOccurred will be false;
      • MergeResult

        public MergeResult()
        No arguments constructor.
    • Method Detail

      • mergingOccurred

        public boolean mergingOccurred()
        Returns:
        true if merging happened, or false if no merging happened because the given left|right files were identical.
      • getMergedString

        public java.lang.String getMergedString()
        Returns:
        The merged string.
      • setMergedString

        public void setMergedString​(java.lang.String mergedString)
        Sets the value of the merged string.
        Parameters:
        mergedString - The new merged string.
      • setResultType

        public void setResultType​(MergeResult.ResultType result)
        Sets the new value of the result type.
        Parameters:
        result - The new value of the result type.