org.gitective.core.stat
Enum Month

java.lang.Object
  extended by java.lang.Enum<Month>
      extended by org.gitective.core.stat.Month
All Implemented Interfaces:
Serializable, Comparable<Month>

public enum Month
extends Enum<Month>

Months with number of days and indices


Enum Constant Summary
APRIL
          APRIL
AUGUST
          AUGUST
DECEMBER
          DECEMBER
FEBRUARY
          FEBRUARY
JANUARY
          JANUARY
JULY
          JULY
JUNE
          JUNE
MARCH
          MARCH
MAY
          MAY
NOVEMBER
          NOVEMBER
OCTOBER
          OCTOBER
SEPTEMBER
          SEPTEMBER
 
Field Summary
 int days
          Days in month
 int number
          Month number
 
Method Summary
static Month month(int number)
          Get month for given number
 String toString()
           
static Month valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Month[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JANUARY

public static final Month JANUARY
JANUARY


FEBRUARY

public static final Month FEBRUARY
FEBRUARY


MARCH

public static final Month MARCH
MARCH


APRIL

public static final Month APRIL
APRIL


MAY

public static final Month MAY
MAY


JUNE

public static final Month JUNE
JUNE


JULY

public static final Month JULY
JULY


AUGUST

public static final Month AUGUST
AUGUST


SEPTEMBER

public static final Month SEPTEMBER
SEPTEMBER


OCTOBER

public static final Month OCTOBER
OCTOBER


NOVEMBER

public static final Month NOVEMBER
NOVEMBER


DECEMBER

public static final Month DECEMBER
DECEMBER

Field Detail

number

public final int number
Month number


days

public final int days
Days in month

Method Detail

values

public static Month[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Month c : Month.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Month valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

month

public static Month month(int number)
Get month for given number

Parameters:
number -
Returns:
month

toString

public String toString()
Overrides:
toString in class Enum<Month>


Copyright © 2011-2012. All Rights Reserved.