@Immutable public interface Issue extends Comparable<Issue>, JsonReadable, JsonPatchable
Use a supplementary "smart" decorator to get other properties from an issue, for example:
Issue.Smart issue = new Issue.Smart(origin); if (issue.isOpen()) { issue.close(); }
Modifier and Type | Interface and Description |
---|---|
static class |
Issue.Smart
Smart Issue with extra features.
|
Modifier and Type | Field and Description |
---|---|
static String |
CLOSED_STATE
Issue state.
|
static String |
OPEN_STATE
Issue state.
|
Modifier and Type | Method and Description |
---|---|
Comments |
comments()
Get all comments of the issue.
|
Iterable<Event> |
events()
Get all events of the issue.
|
boolean |
exists()
Is this issue exists in Github?
|
IssueLabels |
labels()
Get all labels of the issue.
|
int |
number()
Get its number.
|
Repo |
repo()
Repository we're in.
|
compareTo
json
patch
static final String OPEN_STATE
static final String CLOSED_STATE
int number()
@NotNull(message="comments are never NULL") Comments comments()
@NotNull(message="labels are never NULL") IssueLabels labels()
@NotNull(message="iterable of events is never NULL") Iterable<Event> events() throws IOException
IOException
- If there is any I/O problemboolean exists() throws IOException
IOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.