Class CommitDiffSourceCodeType

    • Method Detail

      • sourceCommit

        public final String sourceCommit()

        The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.

        Returns:
        The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.
      • destinationCommit

        public final String destinationCommit()

        The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.

        Returns:
        The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.
      • mergeBaseCommit

        public final String mergeBaseCommit()

        The SHA of the merge base of a commit.

        Returns:
        The SHA of the merge base of a commit.
      • 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)