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

    • Unmodified

      public Unmodified(Repo rep, String object)
      Public ctor.
      Parameters:
      rep - Repo
      object - String
  • Method Details

    • 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 label)
      Specified by:
      compareTo in interface Comparable<Label>
    • patch

      public void patch(jakarta.json.JsonObject json)
      Description copied from interface: JsonPatchable
      Patch using this JSON object.
      Specified by:
      patch in interface JsonPatchable
      Parameters:
      json - JSON object
    • json

      public jakarta.json.JsonObject json()
      Description copied from interface: JsonReadable
      Describe it in a JSON object.
      Specified by:
      json in interface JsonReadable
      Returns:
      JSON object