Package com.atlassian.bitbucket.commit
Class SimpleCommit
java.lang.Object
com.atlassian.bitbucket.commit.SimpleMinimalCommit
com.atlassian.bitbucket.commit.SimpleCommit
- All Implemented Interfaces:
Commit
,MinimalCommit
,PropertySupport
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bitbucket.commit.SimpleMinimalCommit
SimpleMinimalCommit.AbstractMinimalCommitBuilder<B extends SimpleMinimalCommit.AbstractMinimalCommitBuilder<B,
R>, R extends MinimalCommit> -
Field Summary
Fields inherited from class com.atlassian.bitbucket.commit.SimpleMinimalCommit
DEFAULT_DISPLAY_ID_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves therepository
this commit was loaded from, if it's available.int
hashCode()
void
setProperties
(PropertyMap properties) void
setRepository
(Repository repository) toString()
Methods inherited from class com.atlassian.bitbucket.commit.SimpleMinimalCommit
getDisplayId, getId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bitbucket.commit.MinimalCommit
getDisplayId, getId
-
Method Details
-
equals
- Overrides:
equals
in classSimpleMinimalCommit
-
getAuthor
-
getAuthorTimestamp
- Specified by:
getAuthorTimestamp
in interfaceCommit
- Returns:
- the timestamp when the changes were authored
-
getCommitter
- Specified by:
getCommitter
in interfaceCommit
- Returns:
- the person who committed the changes
-
getCommitterTimestamp
- Specified by:
getCommitterTimestamp
in interfaceCommit
- Returns:
- the timestamp when the changes were committed
-
getMessage
- Specified by:
getMessage
in interfaceCommit
- Returns:
- the commit message
-
getParents
- Specified by:
getParents
in interfaceCommit
- Returns:
- the commit's parents, which may be empty for the initial commit to a repository but will never be
null
-
getProperties
- Specified by:
getProperties
in interfacePropertySupport
- Returns:
- the properties associated with this object
-
getRepository
Description copied from interface:Commit
Retrieves therepository
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.- Specified by:
getRepository
in interfaceCommit
- Returns:
- the repository that this commit belongs to
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSimpleMinimalCommit
-
setProperties
-
setRepository
-
toString
- Overrides:
toString
in classSimpleMinimalCommit
-