Class ConflictMetadata

    • Method Detail

      • filePath

        public final String filePath()

        The path of the file that contains conflicts.

        Returns:
        The path of the file that contains conflicts.
      • fileSizes

        public final FileSizes fileSizes()

        The file sizes of the file in the source, destination, and base of the merge.

        Returns:
        The file sizes of the file in the source, destination, and base of the merge.
      • fileModes

        public final FileModes fileModes()

        The file modes of the file in the source, destination, and base of the merge.

        Returns:
        The file modes of the file in the source, destination, and base of the merge.
      • objectTypes

        public final ObjectTypes objectTypes()

        Information about any object type conflicts in a merge operation.

        Returns:
        Information about any object type conflicts in a merge operation.
      • numberOfConflicts

        public final Integer numberOfConflicts()

        The number of conflicts, including both hunk conflicts and metadata conflicts.

        Returns:
        The number of conflicts, including both hunk conflicts and metadata conflicts.
      • isBinaryFile

        public final IsBinaryFile isBinaryFile()

        A boolean value (true or false) indicating whether the file is binary or textual in the source, destination, and base of the merge.

        Returns:
        A boolean value (true or false) indicating whether the file is binary or textual in the source, destination, and base of the merge.
      • contentConflict

        public final Boolean contentConflict()

        A boolean value indicating whether there are conflicts in the content of a file.

        Returns:
        A boolean value indicating whether there are conflicts in the content of a file.
      • fileModeConflict

        public final Boolean fileModeConflict()

        A boolean value indicating whether there are conflicts in the file mode of a file.

        Returns:
        A boolean value indicating whether there are conflicts in the file mode of a file.
      • objectTypeConflict

        public final Boolean objectTypeConflict()

        A boolean value (true or false) indicating whether there are conflicts between the branches in the object type of a file, folder, or submodule.

        Returns:
        A boolean value (true or false) indicating whether there are conflicts between the branches in the object type of a file, folder, or submodule.
      • mergeOperations

        public final MergeOperations mergeOperations()

        Whether an add, modify, or delete operation caused the conflict between the source and destination of the merge.

        Returns:
        Whether an add, modify, or delete operation caused the conflict between the source and destination of the merge.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)