public class CommitCalendar extends Object implements Serializable
This class supports obtaining the number of commits in a given month, day or hour of the day across all years. Also supported is obtaining the number of commits in each month, day or hour of the day as an array of integers.
| Constructor and Description |
|---|
CommitCalendar(UserCommitActivity[] activity)
Create calendar from user activity
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Get total number of commits for all years
|
int |
getDayCount(int dayOfMonth)
Get number of commits in given day of month
|
int[] |
getDays()
Get commit counts for each day of the month
|
int |
getHourCount(int hour)
Get number of commits in given hour
|
int[] |
getHours()
Get commit counts for each hour of the day
|
int |
getMonthCount(int month)
Get number of commits in given month
|
int[] |
getMonths()
Get commit counts for each month
|
YearCommitActivity[] |
getYears()
Get yearly activity
|
public CommitCalendar(UserCommitActivity[] activity)
activity - public YearCommitActivity[] getYears()
public int[] getMonths()
public int[] getDays()
public int[] getHours()
public int getMonthCount(int month)
month - public int getHourCount(int hour)
hour - public int getDayCount(int dayOfMonth)
dayOfMonth - public int getCount()
Copyright © 2011-2015. All Rights Reserved.