public static enum Month.Months extends java.lang.Enum<Month.Months> implements Month
Month.Conversions, Month.Months
Enum Constant and Description |
---|
APRIL |
AUGUST |
DECEMBER |
FEBRUARY |
JANUARY |
JULY |
JUNE |
MARCH |
MAY |
NOVEMBER |
OCTOBER |
SEPTEMBER |
Modifier and Type | Method and Description |
---|---|
static Month.Months |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Month.Months[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getMonthNumber
public static final Month.Months JANUARY
public static final Month.Months FEBRUARY
public static final Month.Months MARCH
public static final Month.Months APRIL
public static final Month.Months MAY
public static final Month.Months JUNE
public static final Month.Months JULY
public static final Month.Months AUGUST
public static final Month.Months SEPTEMBER
public static final Month.Months OCTOBER
public static final Month.Months NOVEMBER
public static final Month.Months DECEMBER
public static Month.Months[] values()
for (Month.Months c : Month.Months.values()) System.out.println(c);
public static Month.Months valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null