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.
Since:
0.1
  • Constructor Details

    • Smart

      public Smart(Label lbl)
      Public ctor.
      Parameters:
      lbl - Label
  • Method Details

    • 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
    • repo

      public Repo repo()
      Description copied from interface: Label
      The repo we're in.
      Specified by:
      repo in interface Label
      Returns:
      Issue
    • name

      public String name()
      Description copied from interface: Label
      Name of it.
      Specified by:
      name in interface Label
      Returns:
      Name
    • compareTo

      public int compareTo(Label lbl)
      Specified by:
      compareTo in interface Comparable<Label>
    • patch

      public void patch(jakarta.json.JsonObject json) throws IOException
      Description copied from interface: JsonPatchable
      Patch using this JSON object.
      Specified by:
      patch in interface JsonPatchable
      Parameters:
      json - JSON object
      Throws:
      IOException - If there is any I/O problem
    • json

      public jakarta.json.JsonObject json() throws IOException
      Description copied from interface: JsonReadable
      Describe it in a JSON object.
      Specified by:
      json in interface JsonReadable
      Returns:
      JSON object
      Throws:
      IOException - If there is any I/O problem