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.
- Since:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.RepoCommit
RepoCommit.Smart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the login of the author.intcompareTo(RepoCommit obj) booleanReturns TRUE if the commit is verified.jakarta.json.JsonObjectjson()Describe it in a JSON object.message()Get its message.repo()The repo we're in.sha()SHA of it.url()Get its URL.
-
Constructor Details
-
Smart
Public ctor.- Parameters:
cmt- RepoCommit
-
-
Method Details
-
message
Get its message.- Returns:
- Message of repo commit
- Throws:
IOException- If there is any I/O problem
-
url
Get its URL.- Returns:
- URL of repo commit
- Throws:
IOException- If there is any I/O problem
-
author
Returns the login of the author.- Returns:
- The login
- Throws:
IOException- If there is any I/O problem- Since:
- 1.1
-
isVerified
Returns TRUE if the commit is verified.- Returns:
- TRUE if verified
- Throws:
IOException- If there is any I/O problem- Since:
- 1.1
-
repo
Description copied from interface:RepoCommitThe repo we're in.- Specified by:
repoin interfaceRepoCommit- Returns:
- Repo
-
sha
Description copied from interface:RepoCommitSHA of it.- Specified by:
shain interfaceRepoCommit- Returns:
- SHA
-
json
Description 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
- Specified by:
compareToin interfaceComparable<RepoCommit>
-