Class RepositoryStatistics.Smart

  • Enclosing class:
    RepositoryStatistics

    public static final class RepositoryStatistics.Smart
    extends Object
    Smart RepositoryStatistics.
    Since:
    1.8.0
    Version:
    $Id $
    Author:
    Volodya Lombrozo (volodya.lombrozo@gmail.com)
    • Constructor Detail

      • Smart

        public Smart​(Repo repo)
        Public ctor.
        Parameters:
        repo - Repository.
      • Smart

        public Smart​(RepositoryStatistics statistics)
        Public ctor.
        Parameters:
        statistics - Repository statistics.
    • Method Detail

      • forks

        public int forks()
                  throws IOException
        Number of forks of this repository.
        Returns:
        Number of forks
        Throws:
        IOException - If there is any I/O problem
      • stargazers

        public int stargazers()
                       throws IOException
        Number of users who have starred this repository.
        Returns:
        Number of stargazers
        Throws:
        IOException - If there is any I/O problem
      • watchers

        public int watchers()
                     throws IOException
        Number of users watching the repository.
        Returns:
        Number of watchers
        Throws:
        IOException - If there is any I/O problem
      • size

        public int size()
                 throws IOException
        The size of the repository.
        Returns:
        Size of the repository
        Throws:
        IOException - If there is any I/O problem
      • openIssues

        public int openIssues()
                       throws IOException
        The number of open issues in this repository.
        Returns:
        Number of open issues
        Throws:
        IOException - If there is any I/O problem
      • created

        public ZonedDateTime created()
                              throws IOException
        The time the repository was created.
        Returns:
        Time the repository was created
        Throws:
        IOException - If there is any I/O problem