@Immutable @Loggable(value=1) public static final class CommitsComparison.Smart extends Object implements CommitsComparison
CommitsComparison.Smart
Constructor and Description |
---|
Smart(CommitsComparison cmprsn)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
Iterable<RepoCommit> |
commits()
Get commits.
|
Iterable<FileChange> |
files()
Iterate over the file changes between the two commits being
compared.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
Repo |
repo()
Get a parent repository of commits.
|
public Smart(CommitsComparison cmprsn)
cmprsn
- Commits comparisonpublic Iterable<RepoCommit> commits() throws IOException
IOException
- If there is any I/O problempublic Iterable<FileChange> files() throws IOException
CommitsComparison
files
in interface CommitsComparison
IOException
- If there is any I/O problempublic Repo repo()
CommitsComparison
repo
in interface CommitsComparison
public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.