|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gitective.core.stat.CommitCalendar
public class CommitCalendar
Commit calendar class that stores yearly commit activity.
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 Summary | |
|---|---|
CommitCalendar(UserCommitActivity[] activity)
Create calendar from user activity |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommitCalendar(UserCommitActivity[] activity)
activity - | Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||