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 ClassesNested 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 TypeMethodDescriptionbooleanRetrieves therepositorythis commit was loaded from, if it's available.inthashCode()voidsetProperties(PropertyMap properties) voidsetRepository(Repository repository) toString()Methods inherited from class com.atlassian.bitbucket.commit.SimpleMinimalCommit
getDisplayId, getIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bitbucket.commit.MinimalCommit
getDisplayId, getId
-
Method Details
-
equals
- Overrides:
equalsin classSimpleMinimalCommit
-
getAuthor
-
getAuthorTimestamp
- Specified by:
getAuthorTimestampin interfaceCommit- Returns:
- the timestamp when the changes were authored
-
getCommitter
- Specified by:
getCommitterin interfaceCommit- Returns:
- the person who committed the changes
-
getCommitterTimestamp
- Specified by:
getCommitterTimestampin interfaceCommit- Returns:
- the timestamp when the changes were committed
-
getMessage
- Specified by:
getMessagein interfaceCommit- Returns:
- the commit message
-
getParents
- Specified by:
getParentsin 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:
getPropertiesin interfacePropertySupport- Returns:
- the properties associated with this object
-
getRepository
Description copied from interface:CommitRetrieves therepositorythis commit was loaded from, if it's available.Note: For reasons of performance and conciseness this field may be
nulldepending 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:
getRepositoryin interfaceCommit- Returns:
- the repository that this commit belongs to
-
hashCode
public int hashCode()- Overrides:
hashCodein classSimpleMinimalCommit
-
setProperties
-
setRepository
-
toString
- Overrides:
toStringin classSimpleMinimalCommit
-