@Immutable @Loggable(value=1) public static final class Statuses.Smart extends Object implements Statuses
Statuses.Smart
Constructor and Description |
---|
Statuses.Smart(Statuses stats)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
Commit |
commit()
Associated commit.
|
Status |
create(Status status)
Create new status.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
Iterable<Statuses> |
list(String ref)
List all statuses for a given ref.
|
String |
message()
Get its message.
|
URL |
url()
Get its URL.
|
@NotNull(message="message is never NULL") public String message() throws IOException
IOException
- If there is any I/O problem@NotNull(message="URL is never NULL") public URL url() throws IOException
IOException
- If there is any I/O problem@NotNull(message="commit is never NULL") public Commit commit()
Statuses
public Status create(@NotNull(message="status can\'t be NULL") Status status) throws IOException
Statuses
create
in interface Statuses
status
- Add this statusIOException
- If there is any I/O problempublic Iterable<Statuses> list(@NotNull(message="ref can\'t be NULL") String ref)
Statuses
@NotNull(message="JSON is never NULL") public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problemCopyright © 2012–2015 jcabi.com. All rights reserved.