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 Stringcolor()Get its color.voidcolor(String color)Set its color.intcompareTo(Label lbl)javax.json.JsonObjectjson()Describe it in a JSON object.Stringname()Name of it.voidpatch(javax.json.JsonObject json)Patch using this JSON object.Reporepo()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:
compareToin interfaceComparable<Label>
-
patch
public void patch(javax.json.JsonObject json) throws IOExceptionDescription copied from interface:JsonPatchablePatch using this JSON object.- Specified by:
patchin interfaceJsonPatchable- Parameters:
json- JSON object- Throws:
IOException- If there is any I/O problem
-
json
public javax.json.JsonObject json() throws IOExceptionDescription copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
-