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, getId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDisplayId, getId
public 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 Commit
public String getMessage()
getMessage
in interface Commit
@Nonnull public List<MinimalCommit> getParents()
getParents
in interface Commit
null
@Nonnull public PropertyMap getProperties()
getProperties
in interface PropertySupport
public Repository getRepository()
Commit
repository
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 Commit
public int hashCode()
hashCode
in class SimpleMinimalCommit
public void setProperties(@Nonnull PropertyMap properties)
public void setRepository(Repository repository)
public String toString()
toString
in class SimpleMinimalCommit
Copyright © 2020 Atlassian. All rights reserved.