public static enum WeekOfMonth.Weeks extends java.lang.Enum<WeekOfMonth.Weeks> implements WeekOfMonth
WeekOfMonth.Conversions, WeekOfMonth.Number, WeekOfMonth.Weeks
Enum Constant and Description |
---|
FIFTH
Fifth week of the month.
|
FIRST
First week of the month.
|
FOURTH
Fourth week of the month.
|
LAST
Last week of the month.
|
PENULTIMATE
The Week before the last week of the month.
|
SECOND
Second week of the month.
|
THIRD
Third week of the month.
|
Modifier and Type | Method and Description |
---|---|
static WeekOfMonth.Weeks |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WeekOfMonth.Weeks[] |
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
getWeekNumber
public static final WeekOfMonth.Weeks FIRST
public static final WeekOfMonth.Weeks SECOND
public static final WeekOfMonth.Weeks THIRD
public static final WeekOfMonth.Weeks FOURTH
public static final WeekOfMonth.Weeks FIFTH
public static final WeekOfMonth.Weeks LAST
public static final WeekOfMonth.Weeks PENULTIMATE
public static WeekOfMonth.Weeks[] values()
for (WeekOfMonth.Weeks c : WeekOfMonth.Weeks.values()) System.out.println(c);
public static WeekOfMonth.Weeks 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