Class PullComment.Smart

java.lang.Object
com.jcabi.github.PullComment.Smart
All Implemented Interfaces:
JsonPatchable, JsonReadable, PullComment, Comparable<PullComment>
Enclosing interface:
PullComment

@Immutable @Loggable(1) public static final class PullComment.Smart extends Object implements PullComment
Smart PullComment with extra features.
Since:
0.8
  • Constructor Details

    • Smart

      public Smart(PullComment pcomment)
      Public ctor.
      Parameters:
      pcomment - Pull comment
  • Method Details

    • identifier

      public String identifier() throws IOException
      Get its id value.
      Returns:
      Id of pull comment
      Throws:
      IOException - If there is any I/O problem
    • identifier

      public void identifier(String value) throws IOException
      Change its id value.
      Parameters:
      value - Id of pull comment
      Throws:
      IOException - If there is any I/O problem
    • commitId

      public String commitId() throws IOException
      Get its commit id value.
      Returns:
      Commit id of pull comment
      Throws:
      IOException - If there is any I/O problem
    • commitId

      public void commitId(String value) throws IOException
      Change its commit id value.
      Parameters:
      value - Commit id of pull comment
      Throws:
      IOException - If there is any I/O problem
    • url

      public String url() throws IOException
      Get its url value.
      Returns:
      Url of pull comment
      Throws:
      IOException - If there is any I/O problem
    • reply

      public int reply() throws IOException
      Get its reply id value.
      Returns:
      Reply id of pull comment
      Throws:
      IOException - If there is any I/O problem
    • url

      public void url(String value) throws IOException
      Change its url value.
      Parameters:
      value - Url of pull comment
      Throws:
      IOException - If there is any I/O problem
    • body

      public String body() throws IOException
      Get its body value.
      Returns:
      Url of pull comment
      Throws:
      IOException - If there is any I/O problem
    • body

      public void body(String value) throws IOException
      Change its body value.
      Parameters:
      value - Url of pull comment
      Throws:
      IOException - If there is any I/O problem
    • pull

      public Pull pull()
      Description copied from interface: PullComment
      Pull we're in.
      Specified by:
      pull in interface PullComment
      Returns:
      Pull
    • number

      public int number()
      Description copied from interface: PullComment
      Get its number.
      Specified by:
      number in interface PullComment
      Returns:
      Pull comment number
    • react

      public void react(Reaction reaction)
      Description copied from interface: PullComment
      Adds the reaction to the pull comment.
      Specified by:
      react in interface PullComment
      Parameters:
      reaction - Reaction to be added.
    • reactions

      public Collection<Reaction> reactions()
      Description copied from interface: PullComment
      List the reactions of the pull comment.
      Specified by:
      reactions in interface PullComment
      Returns:
      Comment reactions.
    • compareTo

      public int compareTo(PullComment comment)
      Specified by:
      compareTo in interface Comparable<PullComment>
    • 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
    • author

      public String author() throws IOException
      Get its author.
      Returns:
      Pull comment author
      Throws:
      IOException - If there is any I/O problem