public class CommitContextImpl extends Object implements CommitContext, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
CommitContextImpl.Builder |
| Constructor and Description |
|---|
CommitContextImpl(AuthorContext author,
List<CommitFile> files,
String comment,
Date date,
String changeSetId) |
| Modifier and Type | Method and Description |
|---|---|
static CommitContextImpl.Builder |
builder() |
boolean |
equals(Object o) |
AuthorContext |
getAuthorContext() |
String |
getBranch() |
String |
getChangeSetId()
Return VCS identifier for this changeset.
|
String |
getComment() |
Date |
getDate() |
List<CommitFile> |
getFiles() |
String |
guessChangeSetId() |
int |
hashCode() |
boolean |
isForeignCommit()
True if commit comes from another branch/is not in the ancestry path.
|
String |
toString() |
public CommitContextImpl(AuthorContext author, @NotNull List<CommitFile> files, @NotNull String comment, @NotNull Date date, String changeSetId)
public AuthorContext getAuthorContext()
getAuthorContext in interface CommitContextAuthorContext of commit author@NotNull public List<CommitFile> getFiles()
getFiles in interface CommitContextList of CommitFile objects representing changed files@NotNull public String getComment()
getComment in interface CommitContext@NotNull public Date getDate()
getDate in interface CommitContextDate of commit.@Nullable public String getBranch()
public String getChangeSetId()
CommitContextgetChangeSetId in interface CommitContextpublic boolean isForeignCommit()
CommitContextisForeignCommit in interface CommitContext@Nullable public String guessChangeSetId()
guessChangeSetId in interface CommitContextpublic static CommitContextImpl.Builder builder()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.