Package com.jcabi.github
Class RepoCommit.Smart
- java.lang.Object
-
- com.jcabi.github.RepoCommit.Smart
-
- All Implemented Interfaces:
JsonReadable,RepoCommit,Comparable<RepoCommit>
- Enclosing interface:
- RepoCommit
@Immutable @Loggable(1) public static final class RepoCommit.Smart extends Object implements RepoCommit
Smart commit.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.RepoCommit
RepoCommit.Smart
-
-
Constructor Summary
Constructors Constructor Description Smart(RepoCommit cmt)Public ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringauthor()Returns the login of the author.intcompareTo(RepoCommit obj)booleanisVerified()Returns TRUE if the commit is verified.javax.json.JsonObjectjson()Describe it in a JSON object.Stringmessage()Get its message.Reporepo()The repo we're in.Stringsha()SHA of it.URLurl()Get its URL.
-
-
-
Constructor Detail
-
Smart
public Smart(RepoCommit cmt)
Public ctor.- Parameters:
cmt- RepoCommit
-
-
Method Detail
-
message
public String message() throws IOException
Get its message.- Returns:
- Message of repo commit
- Throws:
IOException- If there is any I/O problem
-
url
public URL url() throws IOException
Get its URL.- Returns:
- URL of repo commit
- Throws:
IOException- If there is any I/O problem
-
author
public String author() throws IOException
Returns the login of the author.- Returns:
- The login
- Throws:
IOException- If there is any I/O problem- Since:
- 1.1
-
isVerified
public boolean isVerified() throws IOExceptionReturns TRUE if the commit is verified.- Returns:
- TRUE if verified
- Throws:
IOException- If there is any I/O problem- Since:
- 1.1
-
repo
public Repo repo()
Description copied from interface:RepoCommitThe repo we're in.- Specified by:
repoin interfaceRepoCommit- Returns:
- Repo
-
sha
public String sha()
Description copied from interface:RepoCommitSHA of it.- Specified by:
shain interfaceRepoCommit- Returns:
- SHA
-
json
public javax.json.JsonObject json() throws IOExceptionDescription copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
compareTo
public int compareTo(RepoCommit obj)
- Specified by:
compareToin interfaceComparable<RepoCommit>
-
-