Package com.linecorp.centraldogma.common
Class Commit
java.lang.Object
com.linecorp.centraldogma.common.Commit
A set of
Change
s and its metadata.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthor()
detail()
Returns the human-readable detailed description of thisCommit
.boolean
int
hashCode()
markup()
revision()
summary()
Returns the human-readable summary of thisCommit
.toString()
long
when()
Returns the time and date of thisCommit
.Returns the time and date of thisCommit
in ISO 8601 combined date and time representation.
-
Constructor Details
-
Commit
Creates a new instance. The time and date of the newCommit
is set to the current time and date. -
Commit
public Commit(Revision revision, Author author, long when, String summary, String detail, Markup markup) Creates a new instance.- Parameters:
revision
- theRevision
of thisCommit
author
- theAuthor
of thisCommit
when
- the time and date of thisCommit
, represented as the number of milliseconds since the epoch (midnight, January 1, 1970 UTC)summary
- the human-readable summary of thisCommit
detail
- the human-readable detailed description of thisCommit
markup
- theMarkup
language ofsummary
anddetail
-
-
Method Details
-
revision
-
when
public long when()Returns the time and date of thisCommit
.- Returns:
- the number of milliseconds since the epoch (midnight, January 1, 1970 UTC)
-
whenAsText
Returns the time and date of thisCommit
in ISO 8601 combined date and time representation. -
author
-
summary
Returns the human-readable summary of thisCommit
. -
detail
Returns the human-readable detailed description of thisCommit
. -
markup
-
hashCode
public int hashCode() -
equals
-
toString
-