Package com.jcabi.github
Class RepositoryStatistics.Smart
- java.lang.Object
-
- com.jcabi.github.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 Summary
Constructors Constructor Description Smart(Repo repo)Public ctor.Smart(RepositoryStatistics statistics)Public ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZonedDateTimecreated()The time the repository was created.intforks()Number of forks of this repository.intopenIssues()The number of open issues in this repository.intsize()The size of the repository.intstargazers()Number of users who have starred this repository.intwatchers()Number of users watching the repository.
-
-
-
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 IOExceptionNumber of forks of this repository.- Returns:
- Number of forks
- Throws:
IOException- If there is any I/O problem
-
stargazers
public int stargazers() throws IOExceptionNumber 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 IOExceptionNumber of users watching the repository.- Returns:
- Number of watchers
- Throws:
IOException- If there is any I/O problem
-
size
public int size() throws IOExceptionThe size of the repository.- Returns:
- Size of the repository
- Throws:
IOException- If there is any I/O problem
-
openIssues
public int openIssues() throws IOExceptionThe 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
-
-