Module org.kohsuke.github.api
Package org.kohsuke.github
Class GHRepositoryStatistics.ContributorStats
java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHRepositoryStatistics.ContributorStats
- Enclosing class:
- GHRepositoryStatistics
The type ContributorStats.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The type Week. -
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
-
Method Summary
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields
-
Constructor Details
-
ContributorStats
public ContributorStats()Create default ContributorStats instance
-
-
Method Details
-
getAuthor
Gets author.- Returns:
- The author described by these statistics.
-
getTotal
public int getTotal()Gets total.- Returns:
- The total number of commits authored by the contributor.
-
getWeek
public GHRepositoryStatistics.ContributorStats.Week getWeek(long timestamp) throws NoSuchElementException Convenience method to look up week with particular timestamp.- Parameters:
timestamp
- The timestamp to look for.- Returns:
- The week starting with the given timestamp. Throws an exception if it is not found.
- Throws:
NoSuchElementException
- the no such element exception
-
getWeeks
Gets weeks.- Returns:
- The total number of commits authored by the contributor.
-
toString
To string.
-