@Immutable @Loggable(value=1) public static final class Label.Smart extends Object implements Label
Label.Smart, Label.Unmodified| Constructor and Description |
|---|
Label.Smart(Label lbl)
Public ctor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
color()
Get its color.
|
void |
color(String color)
Set its color.
|
int |
compareTo(Label lbl) |
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
String |
name()
Name of it.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
Repo |
repo()
The repo we're in.
|
public Label.Smart(@NotNull(message="lbl can\'t be NULL")
Label lbl)
lbl - Label@NotNull(message="color is never NULL") public String color() throws IOException
IOException - If there is any I/O problempublic void color(@NotNull(message="color can\'t be NULL")
String color)
throws IOException
color - Color to setIOException - If there is any I/O problem@NotNull(message="repo is never NULL") public Repo repo()
Label@NotNull(message="name is never NULL") public String name()
Labelpublic int compareTo(@NotNull(message="lbl can\'t be NULL")
Label lbl)
compareTo in interface Comparable<Label>public void patch(@NotNull(message="json can\'t be NULL")
javax.json.JsonObject json)
throws IOException
JsonPatchablepatch in interface JsonPatchablejson - JSON objectIOException - If there is any I/O problem@NotNull(message="JSON is never NULL")
public javax.json.JsonObject json()
throws IOException
JsonReadablejson in interface JsonReadableIOException - If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.