Package com.jcabi.github
Class Label.Unmodified
- java.lang.Object
-
- com.jcabi.github.Label.Unmodified
-
- All Implemented Interfaces:
JsonPatchable
,JsonReadable
,Label
,Comparable<Label>
- Enclosing interface:
- Label
@Immutable @Loggable(1) public static final class Label.Unmodified extends Object implements Label
Unmodified Label with extra features.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Label
Label.Smart, Label.Unmodified
-
-
Constructor Summary
Constructors Constructor Description Unmodified(Repo rep, String object)
Public ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Label label)
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.
-
-
-
Method Detail
-
compareTo
public int compareTo(Label label)
- 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()
Description copied from interface:JsonReadable
Describe it in a JSON object.- Specified by:
json
in interfaceJsonReadable
- Returns:
- JSON object
-
-