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 String
author()
Returns the login of the author.int
compareTo(RepoCommit obj)
boolean
isVerified()
Returns TRUE if the commit is verified.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.
-
-
-
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 IOException
Returns 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:RepoCommit
The repo we're in.- Specified by:
repo
in interfaceRepoCommit
- Returns:
- Repo
-
sha
public String sha()
Description copied from interface:RepoCommit
SHA of it.- Specified by:
sha
in interfaceRepoCommit
- Returns:
- SHA
-
json
public javax.json.JsonObject json() throws IOException
Description copied from interface:JsonReadable
Describe it in a JSON object.- Specified by:
json
in interfaceJsonReadable
- Returns:
- JSON object
- Throws:
IOException
- If there is any I/O problem
-
compareTo
public int compareTo(RepoCommit obj)
- Specified by:
compareTo
in interfaceComparable<RepoCommit>
-
-