Class Fork.Smart

    • Constructor Detail

      • Smart

        public Smart​(Fork frk)
        Public ctor.
        Parameters:
        frk - Fork
    • Method Detail

      • organization

        public String organization()
                            throws IOException
        Get its organization.
        Returns:
        Organization
        Throws:
        IOException - If there is any I/O problem
      • url

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

        public String fullName()
                        throws IOException
        Get its full name.
        Returns:
        Full name of fork
        Throws:
        IOException - If there is any I/O problem
      • description

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

        public URL htmlUrl()
                    throws IOException
        Get its html url.
        Returns:
        Html url of fork
        Throws:
        IOException - If there is any I/O problem
      • cloneUrl

        public URL cloneUrl()
                     throws IOException
        Get its clone url.
        Returns:
        Clone url of fork
        Throws:
        IOException - If there is any I/O problem
      • gitUrl

        public String gitUrl()
                      throws IOException
        Get its git url.
        Returns:
        Git url of fork
        Throws:
        IOException - If there is any I/O problem
      • sshUrl

        public String sshUrl()
                      throws IOException
        Get its ssh url.
        Returns:
        Ssh url of fork
        Throws:
        IOException - If there is any I/O problem
      • svnUrl

        public URL svnUrl()
                   throws IOException
        Get its svn url.
        Returns:
        Svn url of fork
        Throws:
        IOException - If there is any I/O problem
      • mirrorUrl

        public String mirrorUrl()
                         throws IOException
        Get its mirror url.
        Returns:
        Mirror url of fork
        Throws:
        IOException - If there is any I/O problem
      • homeUrl

        public URL homeUrl()
                    throws IOException
        Get its home page.
        Returns:
        Url of home page of fork
        Throws:
        IOException - If there is any I/O problem
      • forks

        public int forks()
                  throws IOException
        Get its forks count.
        Returns:
        Forks count of fork
        Throws:
        IOException - If there is any I/O problem
      • stargazers

        public int stargazers()
                       throws IOException
        Get its stargazers count.
        Returns:
        Stargazers count of fork
        Throws:
        IOException - If there is any I/O problem
      • watchers

        public int watchers()
                     throws IOException
        Get its watchers count.
        Returns:
        Watchers count of fork
        Throws:
        IOException - If there is any I/O problem
      • size

        public int size()
                 throws IOException
        Get its size.
        Returns:
        Size of fork
        Throws:
        IOException - If there is any I/O problem
      • defaultBranch

        public String defaultBranch()
                             throws IOException
        Get its default branch.
        Returns:
        Default branch
        Throws:
        IOException - If there is any I/O problem
      • openIssues

        public int openIssues()
                       throws IOException
        Get its open issues count.
        Returns:
        Size of fork
        Throws:
        IOException - If there is any I/O problem
      • number

        public int number()
        Description copied from interface: Fork
        Fork id.
        Specified by:
        number in interface Fork
        Returns:
        Id
      • json

        public javax.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
      • patch

        public void patch​(javax.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