@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(Label lbl)
lbl
- Labelpublic String color() throws IOException
IOException
- If there is any I/O problempublic void color(String color) throws IOException
color
- Color to setIOException
- If there is any I/O problempublic int compareTo(Label lbl)
compareTo
in interface Comparable<Label>
public void patch(javax.json.JsonObject json) throws IOException
JsonPatchable
patch
in interface JsonPatchable
json
- JSON objectIOException
- If there is any I/O problempublic javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.