@Immutable @Loggable(value=1) public static final class RepoCommit.Smart extends Object implements RepoCommit
RepoCommit.Smart
Constructor and Description |
---|
Smart(RepoCommit cmt)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RepoCommit obj) |
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
String |
message()
Get its message.
|
Repo |
repo()
The repo we're in.
|
String |
sha()
SHA of it.
|
URL |
url()
Get its URL.
|
public Smart(RepoCommit cmt)
cmt
- RepoCommitpublic String message() throws IOException
IOException
- If there is any I/O problempublic URL url() throws IOException
IOException
- If there is any I/O problempublic Repo repo()
RepoCommit
repo
in interface RepoCommit
public String sha()
RepoCommit
sha
in interface RepoCommit
public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic int compareTo(RepoCommit obj)
compareTo
in interface Comparable<RepoCommit>
Copyright © 2012–2018 jcabi.com. All rights reserved.