Class Commit.Smart

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

@Immutable @Loggable(1) public static final class Commit.Smart extends Object implements Commit
Smart commit.
Since:
0.3
  • Constructor Details

    • Smart

      public Smart(Commit cmt)
      Public ctor.
      Parameters:
      cmt - Commit
  • Method Details

    • message

      public String message() throws IOException
      Get its message.
      Returns:
      Message of commit
      Throws:
      IOException - If there is any I/O problem
    • url

      public URL url() throws IOException
      Get its URL.
      Returns:
      URL of comment
      Throws:
      IOException - If there is any I/O problem
    • repo

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

      public String sha()
      Description copied from interface: Commit
      SHA of it.
      Specified by:
      sha in interface Commit
      Returns:
      SHA
    • 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
    • compareTo

      public int compareTo(Commit obj)
      Specified by:
      compareTo in interface Comparable<Commit>