Class CommitImpl

    • Constructor Detail

      • CommitImpl

        public CommitImpl()
    • Method Detail

      • setAuthor

        public void setAuthor​(Author author)
        Description copied from interface: Commit
        Who made the commit
        Specified by:
        setAuthor in interface Commit
      • addFile

        public void addFile​(CommitFile commitFile)
      • setFiles

        public void setFiles​(List<CommitFile> files)
        Specified by:
        setFiles in interface Commit
        Parameters:
        files - - files to update this commit with.
      • setComment

        public void setComment​(String comment)
      • setChangeSetId

        public void setChangeSetId​(String changeSetId)
      • setDate

        public void setDate​(@NotNull
                            @NotNull Date date)
      • isForeignCommit

        public boolean isForeignCommit()
        Description copied from interface: CommitContext
        True if commit comes from another branch/is not in the ancestry path. (DVCS only) It is allowed to return false negatives but not false positives. Will return false if feature not supported by repository plugin. In some cases (git) may return false even if commit originated in different branch due to git limitations.
        Specified by:
        isForeignCommit in interface CommitContext
      • setForeignCommit

        public void setForeignCommit​(boolean foreignCommit)
        Specified by:
        setForeignCommit in interface Commit
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.atlassian.core.bean.EntityObject
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.atlassian.core.bean.EntityObject
      • compareTo

        public int compareTo​(Object obj)