org.gitective.core.stat
Class YearCommitActivity

java.lang.Object
  extended by org.gitective.core.stat.YearCommitActivity

public class YearCommitActivity
extends Object

Commit activity in a given year


Field Summary
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 Summary
YearCommitActivity(int year)
          Create activity for given year
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MONTHS

public static final int MONTHS
Number of months in a year

See Also:
Constant Field Values

HOURS

public static final int HOURS
Number of hours in a day

See Also:
Constant Field Values

DAYS

public static final int DAYS
Maximum number of days in a month

See Also:
Constant Field Values
Constructor Detail

YearCommitActivity

public YearCommitActivity(int year)
Create activity for given year

Parameters:
year -
Method Detail

add

public YearCommitActivity add(Calendar calendar)
Add time of calendar to this year

Parameters:
calendar -
Returns:
this year

getMonths

public int[] getMonths()
Get commit activity in each month

Returns:
array of monthly activity

getMonths

public int[] getMonths(int[] months)
Get commit activity in each month

Parameters:
months -
Returns:
specified months array

getDays

public int[] getDays()
Get commit activity in each day of the month

Returns:
array of daily activity

getDays

public int[] getDays(int[] days)
Get commit activity in each day of the month

Parameters:
days -
Returns:
specified array of days

getHours

public int[] getHours()
Get commit activity in each hour of the day

Returns:
array of hourly activity

getHours

public int[] getHours(int[] hours)
Get commit activity in each hour of the day

Parameters:
hours -
Returns:
specified array of hours

getMonthCount

public int getMonthCount(Month month)
Get number of commits in given month

Parameters:
month -
Returns:
number of commits

getMonthCount

public int getMonthCount(int month)
Get number of commits in given month

Parameters:
month -
Returns:
number of commits

getHourCount

public int getHourCount(int hour)
Get number of commits in given hour of the day

Parameters:
hour -
Returns:
number of commits

getDayCount

public int getDayCount(int dayOfMonth)
Get number commits in given day

Parameters:
dayOfMonth -
Returns:
number of commits

getYear

public int getYear()
Get year

Returns:
year

getCount

public int getCount()
Get total number of commits in this year

Returns:
total commit count


Copyright © 2011-2012. All Rights Reserved.