Class Repo.Smart

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

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

    • Smart

      public Smart(Repo rep)
      Public ctor.
      Parameters:
      rep - Repo
  • Method Details

    • exists

      public boolean exists() throws IOException
      Does this Repo actually exist in GitHub?
      Returns:
      True if it exists, false otherwise.
      Throws:
      IOException - If there is any I/O problem.
    • hasDescription

      public boolean hasDescription() throws IOException
      Does it have a description.
      Returns:
      TRUE if description is present
      Throws:
      IOException - If there is any I/O problem
    • description

      public String description() throws IOException
      Get its description.
      Returns:
      Description
      Throws:
      IOException - If there is any I/O problem
    • isPrivate

      public boolean isPrivate() throws IOException
      Is it private?.
      Returns:
      TRUE if it's private
      Throws:
      IOException - If there is any I/O problem
    • github

      public GitHub github()
      Description copied from interface: Repo
      Get its owner.
      Specified by:
      github in interface Repo
      Returns:
      GitHub
    • coordinates

      public Coordinates coordinates()
      Description copied from interface: Repo
      Get its coordinates.
      Specified by:
      coordinates in interface Repo
      Returns:
      Coordinates
    • issues

      public Issues issues()
      Description copied from interface: Repo
      Iterate issues.
      Specified by:
      issues in interface Repo
      Returns:
      Issues
    • milestones

      public Milestones milestones()
      Description copied from interface: Repo
      Iterate milestones.
      Specified by:
      milestones in interface Repo
      Returns:
      Milestones
    • pulls

      public Pulls pulls()
      Description copied from interface: Repo
      Pull requests.
      Specified by:
      pulls in interface Repo
      Returns:
      Pulls
    • hooks

      public Hooks hooks()
      Description copied from interface: Repo
      Hooks.
      Specified by:
      hooks in interface Repo
      Returns:
      Hooks
    • issueEvents

      public IssueEvents issueEvents()
      Description copied from interface: Repo
      Get all issue events for the repository.
      Specified by:
      issueEvents in interface Repo
      Returns:
      Issue events
      See Also:
    • labels

      public Labels labels()
      Description copied from interface: Repo
      Get all labels of the repo.
      Specified by:
      labels in interface Repo
      Returns:
      Labels
      See Also:
    • assignees

      public Assignees assignees()
      Description copied from interface: Repo
      Get all available assignees to which issues may be assigned.
      Specified by:
      assignees in interface Repo
      Returns:
      Assignees
      See Also:
    • releases

      public Releases releases()
      Description copied from interface: Repo
      Get all releases of the repo.
      Specified by:
      releases in interface Repo
      Returns:
      Releases
      See Also:
    • keys

      public DeployKeys keys()
      Description copied from interface: Repo
      Get all deploy keys of the repo.
      Specified by:
      keys in interface Repo
      Returns:
      DeployKeys
      See Also:
    • forks

      public Forks forks()
      Description copied from interface: Repo
      Get all forks of the repo.
      Specified by:
      forks in interface Repo
      Returns:
      Forks
      See Also:
    • contents

      public Contents contents()
      Description copied from interface: Repo
      Get all contents of the repo.
      Specified by:
      contents in interface Repo
      Returns:
      Contents
      See Also:
    • collaborators

      public Collaborators collaborators()
      Description copied from interface: Repo
      Gel all collaborators.
      Specified by:
      collaborators in interface Repo
      Returns:
      Collaborators
      See Also:
    • git

      public Git git()
      Description copied from interface: Repo
      Get the Git API entry point.
      Specified by:
      git in interface Repo
      Returns:
      Collaborators
      See Also:
    • stars

      public Stars stars()
      Description copied from interface: Repo
      Get Starring API.
      Specified by:
      stars in interface Repo
      Returns:
      Stars
      See Also:
    • notifications

      public Notifications notifications()
      Description copied from interface: Repo
      Get Notifications API.
      Specified by:
      notifications in interface Repo
      Returns:
      Stars
      See Also:
    • languages

      public Iterable<Language> languages() throws IOException
      Description copied from interface: Repo
      Get languages for the specified repository.
      Specified by:
      languages in interface Repo
      Returns:
      Languages
      Throws:
      IOException - If there is any I/O problem
      See Also:
    • defaultBranch

      public Branch defaultBranch() throws IOException
      Description copied from interface: Repo
      Get default branch.
      Specified by:
      defaultBranch in interface Repo
      Returns:
      Default branch.
      Throws:
      IOException - If there is any I/O problem.
    • stargazers

      public Stargazers stargazers()
      Description copied from interface: Repo
      Lists the people that have starred the repository.
      Specified by:
      stargazers in interface Repo
      Returns:
      Lists the people that have starred the repository.
    • 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
    • commits

      public RepoCommits commits()
      Description copied from interface: Repo
      Get repository's commits.
      Specified by:
      commits in interface Repo
      Returns:
      Commits
      See Also:
    • branches

      public Branches branches()
      Description copied from interface: Repo
      Get repository's branches.
      Specified by:
      branches in interface Repo
      Returns:
      Branches
      See Also:
    • 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(Repo repos)
      Specified by:
      compareTo in interface Comparable<Repo>