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 CommitContext
AuthorContext
of commit author@NotNull public List<CommitFile> getFiles()
getFiles
in interface CommitContext
List
of CommitFile
objects representing changed files@NotNull public String getComment()
getComment
in interface CommitContext
@NotNull public Date getDate()
getDate
in interface CommitContext
Date
of commit.@Nullable public String getBranch()
public String getChangeSetId()
CommitContext
getChangeSetId
in interface CommitContext
public boolean isForeignCommit()
CommitContext
isForeignCommit
in interface CommitContext
@Nullable public String guessChangeSetId()
guessChangeSetId
in interface CommitContext
public static CommitContextImpl.Builder builder()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.