public class CommitContextImpl extends Object implements CommitContext, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CommitContextImpl.Builder |
Constructor and Description |
---|
CommitContextImpl(AuthorContext author,
@NotNull List<CommitFile> files,
@NotNull String comment,
@NotNull Date date,
String changeSetId) |
Modifier and Type | Method and Description |
---|---|
static CommitContextImpl.Builder |
builder() |
boolean |
equals(Object o) |
AuthorContext |
getAuthorContext() |
@Nullable String |
getBranch() |
String |
getChangeSetId()
Return VCS identifier for this changeset.
|
@NotNull String |
getComment() |
@NotNull Date |
getDate() |
@NotNull List<CommitFile> |
getFiles() |
@Nullable 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 @NotNull List<CommitFile> files, @NotNull @NotNull String comment, @NotNull @NotNull Date date, String changeSetId)
public AuthorContext getAuthorContext()
getAuthorContext
in interface CommitContext
AuthorContext
of commit author@NotNull public @NotNull List<CommitFile> getFiles()
getFiles
in interface CommitContext
List
of CommitFile
objects representing changed files@NotNull public @NotNull String getComment()
getComment
in interface CommitContext
@NotNull public @NotNull Date getDate()
getDate
in interface CommitContext
Date
of commit.@Nullable public @Nullable String getBranch()
public String getChangeSetId()
CommitContext
getChangeSetId
in interface CommitContext
public boolean isForeignCommit()
CommitContext
isForeignCommit
in interface CommitContext
@Nullable public @Nullable String guessChangeSetId()
guessChangeSetId
in interface CommitContext
public static CommitContextImpl.Builder builder()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.