@Immutable @Loggable(value=1) public final class MkCommit extends Object implements Commit
Commit.Smart
Constructor and Description |
---|
MkCommit(MkStorage strg,
String login,
Coordinates crds,
String commitsha)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Commit commit) |
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
Repo |
repo()
The repo we're in.
|
String |
sha()
SHA of it.
|
public MkCommit(MkStorage strg, String login, Coordinates crds, String commitsha)
strg
- The storage.login
- The login namecrds
- Credentialcommitsha
- Commit's sha.public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic int compareTo(Commit commit)
compareTo
in interface Comparable<Commit>
Copyright © 2012–2018 jcabi.com. All rights reserved.