public enum WeekOfMonthEnum extends java.lang.Enum<WeekOfMonthEnum>
Java class for WeekOfMonthEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="WeekOfMonthEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="firstWeekOfMonth"/> <enumeration value="secondWeekOfMonth"/> <enumeration value="thirdWeekOfMonth"/> <enumeration value="fourthWeekOfMonth"/> <enumeration value="fifthWeekOfMonth"/> </restriction> </simpleType>
Enum Constant and Description |
---|
FIFTH_WEEK_OF_MONTH
Fifth week of the month (at most only 3 days and non in February when not a leap year).
|
FIRST_WEEK_OF_MONTH
First week of the month.
|
FOURTH_WEEK_OF_MONTH
Fourth week of the month.
|
SECOND_WEEK_OF_MONTH
Second week of the month.
|
THIRD_WEEK_OF_MONTH
Third week of the month.
|
Modifier and Type | Method and Description |
---|---|
static WeekOfMonthEnum |
fromValue(java.lang.String v) |
java.lang.String |
value() |
static WeekOfMonthEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WeekOfMonthEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeekOfMonthEnum FIRST_WEEK_OF_MONTH
public static final WeekOfMonthEnum SECOND_WEEK_OF_MONTH
public static final WeekOfMonthEnum THIRD_WEEK_OF_MONTH
public static final WeekOfMonthEnum FOURTH_WEEK_OF_MONTH
public static final WeekOfMonthEnum FIFTH_WEEK_OF_MONTH
public static WeekOfMonthEnum[] values()
for (WeekOfMonthEnum c : WeekOfMonthEnum.values()) System.out.println(c);
public static WeekOfMonthEnum 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 java.lang.String value()
public static WeekOfMonthEnum fromValue(java.lang.String v)