public static enum BirthDayGenerator.Month extends java.lang.Enum<BirthDayGenerator.Month>
| Enum Constant and Description |
|---|
APRIL |
AUGUST |
DECEMBER |
FEBRUARY |
JANUARY |
JULY |
JUNE |
MARCH |
MAY |
NOVEMBER |
OCTOBER |
SEPTEMBER |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract int |
getMaxDays(int year) |
int |
getNumber() |
static BirthDayGenerator.Month |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BirthDayGenerator.Month[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BirthDayGenerator.Month JANUARY
public static final BirthDayGenerator.Month FEBRUARY
public static final BirthDayGenerator.Month MARCH
public static final BirthDayGenerator.Month APRIL
public static final BirthDayGenerator.Month MAY
public static final BirthDayGenerator.Month JUNE
public static final BirthDayGenerator.Month JULY
public static final BirthDayGenerator.Month AUGUST
public static final BirthDayGenerator.Month SEPTEMBER
public static final BirthDayGenerator.Month OCTOBER
public static final BirthDayGenerator.Month NOVEMBER
public static final BirthDayGenerator.Month DECEMBER
public static BirthDayGenerator.Month[] values()
for (BirthDayGenerator.Month c : BirthDayGenerator.Month.values()) System.out.println(c);
public static BirthDayGenerator.Month 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 nullpublic int getNumber()
abstract int getMaxDays(int year)