public class CommitImpl extends BambooEntityObject implements Commit
id
Constructor and Description |
---|
CommitImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addFile(CommitFile commitFile) |
int |
compareTo(Object obj) |
boolean |
equals(Object o)
This method needs to be here in order to use proper id
|
Author |
getAuthor() |
AuthorContext |
getAuthorContext() |
String |
getChangeSetId()
Return VCS identifier for this changeset.
|
String |
getComment() |
Date |
getDate() |
List<CommitFile> |
getFiles() |
RepositoryChangeset |
getRepositoryChangeset() |
String |
guessChangeSetId() |
int |
hashCode()
This method needs to be here in order to use proper id
|
boolean |
isForeignCommit()
True if commit comes from another branch/is not in the ancestry path.
|
void |
setAuthor(Author author)
Who made the commit
|
void |
setChangeSetId(String changeSetId) |
void |
setComment(String comment) |
void |
setDate(Date date) |
void |
setFiles(List<CommitFile> files) |
void |
setForeignCommit(boolean foreignCommit) |
void |
setRepositoryChangeset(RepositoryChangeset repositoryChangeset) |
String |
toString() |
getId, setId
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
setId
getId
public AuthorContext getAuthorContext()
getAuthorContext
in interface CommitContext
AuthorContext
of commit authorpublic void setAuthor(Author author)
Commit
public void addFile(CommitFile commitFile)
@NotNull public List<CommitFile> getFiles()
getFiles
in interface CommitContext
List
of CommitFile
objects representing changed filespublic void setFiles(List<CommitFile> files)
@NotNull public String getComment()
getComment
in interface CommitContext
@Nullable public String guessChangeSetId()
guessChangeSetId
in interface CommitContext
public void setComment(String comment)
public String getChangeSetId()
CommitContext
getChangeSetId
in interface CommitContext
public void setChangeSetId(String changeSetId)
@NotNull public Date getDate()
getDate
in interface CommitContext
Date
of commit.public void setDate(@NotNull Date date)
@Nullable public RepositoryChangeset getRepositoryChangeset()
getRepositoryChangeset
in interface Commit
RepositoryChangeset
this commit belongs topublic void setRepositoryChangeset(@Nullable RepositoryChangeset repositoryChangeset)
setRepositoryChangeset
in interface Commit
public boolean isForeignCommit()
CommitContext
isForeignCommit
in interface CommitContext
public void setForeignCommit(boolean foreignCommit)
setForeignCommit
in interface Commit
public int hashCode()
BambooEntityObject
hashCode
in class BambooEntityObject
public boolean equals(Object o)
BambooEntityObject
equals
in class BambooEntityObject
public int compareTo(Object obj)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.