public class YearCommitActivity extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DAYS
Maximum number of days in a month
|
static int |
HOURS
Number of hours in a day
|
static int |
MONTHS
Number of months in a year
|
| Constructor and Description |
|---|
YearCommitActivity(int year)
Create activity for given year
|
| Modifier and Type | Method and Description |
|---|---|
YearCommitActivity |
add(Calendar calendar)
Add time of calendar to this year
|
int |
getCount()
Get total number of commits in this year
|
int |
getDayCount(int dayOfMonth)
Get number commits in given day
|
int[] |
getDays()
Get commit activity in each day of the month
|
int[] |
getDays(int[] days)
Get commit activity in each day of the month
|
int |
getHourCount(int hour)
Get number of commits in given hour of the day
|
int[] |
getHours()
Get commit activity in each hour of the day
|
int[] |
getHours(int[] hours)
Get commit activity in each hour of the day
|
int |
getMonthCount(int month)
Get number of commits in given month
|
int |
getMonthCount(Month month)
Get number of commits in given month
|
int[] |
getMonths()
Get commit activity in each month
|
int[] |
getMonths(int[] months)
Get commit activity in each month
|
int |
getYear()
Get year
|
public static final int MONTHS
public static final int HOURS
public static final int DAYS
public YearCommitActivity(int year)
year - public YearCommitActivity add(Calendar calendar)
calendar - public int[] getMonths()
public int[] getMonths(int[] months)
months - public int[] getDays()
public int[] getDays(int[] days)
days - public int[] getHours()
public int[] getHours(int[] hours)
hours - public int getMonthCount(Month month)
month - public int getMonthCount(int month)
month - public int getHourCount(int hour)
hour - public int getDayCount(int dayOfMonth)
dayOfMonth - public int getYear()
public int getCount()
Copyright © 2011-2015. All Rights Reserved.