public class SimpleCommit extends SimpleMinimalCommit implements Commit, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleCommit.Builder |
SimpleMinimalCommit.AbstractMinimalCommitBuilder<B extends SimpleMinimalCommit.AbstractMinimalCommitBuilder<B,R>,R extends MinimalCommit>DEFAULT_DISPLAY_ID_LENGTH| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Person |
getAuthor() |
Date |
getAuthorTimestamp() |
Person |
getCommitter() |
Date |
getCommitterTimestamp() |
String |
getMessage() |
List<MinimalCommit> |
getParents() |
PropertyMap |
getProperties() |
Repository |
getRepository()
Retrieves the
repository this commit was loaded from, if it's available. |
int |
hashCode() |
void |
setProperties(PropertyMap properties) |
void |
setRepository(Repository repository) |
String |
toString() |
getDisplayId, getIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDisplayId, getIdpublic boolean equals(Object o)
equals in class SimpleMinimalCommit@Nonnull public Date getAuthorTimestamp()
getAuthorTimestamp in interface Commit@Nonnull public Person getCommitter()
getCommitter in interface Commit@Nonnull public Date getCommitterTimestamp()
getCommitterTimestamp in interface Commitpublic String getMessage()
getMessage in interface Commit@Nonnull public List<MinimalCommit> getParents()
getParents in interface Commitnull@Nonnull public PropertyMap getProperties()
getProperties in interface PropertySupportpublic Repository getRepository()
Commitrepository this commit was loaded from, if it's available.
Note: For reasons of performance and conciseness this field may be null depending on the service
used to construct this commit. If an explicit repository context has been provided by some other mechanism (for
example, web-fragments on the commit page will have an explicit 'repository' object in their render context) it
is preferable to use that instead of this.
getRepository in interface Commitpublic int hashCode()
hashCode in class SimpleMinimalCommitpublic void setProperties(@Nonnull PropertyMap properties)
public void setRepository(Repository repository)
public String toString()
toString in class SimpleMinimalCommitCopyright © 2019 Atlassian. All rights reserved.