Package com.jcabi.github
Class Label.Smart
- java.lang.Object
-
- com.jcabi.github.Label.Smart
-
- All Implemented Interfaces:
JsonPatchable
,JsonReadable
,Label
,Comparable<Label>
- Enclosing interface:
- Label
@Immutable @Loggable(1) public static final class Label.Smart extends Object implements Label
Smart Label with extra features.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Label
Label.Smart, Label.Unmodified
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
Smart
public Smart(Label lbl)
Public ctor.- Parameters:
lbl
- Label
-
-
Method Detail
-
color
public String color() throws IOException
Get its color.- Returns:
- Color of it
- Throws:
IOException
- If there is any I/O problem
-
color
public void color(String color) throws IOException
Set its color.- Parameters:
color
- Color to set- Throws:
IOException
- If there is any I/O problem
-
compareTo
public int compareTo(Label lbl)
- Specified by:
compareTo
in interfaceComparable<Label>
-
patch
public void patch(javax.json.JsonObject json) throws IOException
Description copied from interface:JsonPatchable
Patch using this JSON object.- Specified by:
patch
in interfaceJsonPatchable
- Parameters:
json
- JSON object- Throws:
IOException
- If there is any I/O problem
-
json
public javax.json.JsonObject json() throws IOException
Description copied from interface:JsonReadable
Describe it in a JSON object.- Specified by:
json
in interfaceJsonReadable
- Returns:
- JSON object
- Throws:
IOException
- If there is any I/O problem
-
-