public enum WeekOfMonth extends Enum<WeekOfMonth>
Java class for WeekOfMonth.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="WeekOfMonth">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="first"/>
<enumeration value="second"/>
<enumeration value="third"/>
<enumeration value="fourth"/>
<enumeration value="last"/>
</restriction>
</simpleType>
| Modifier and Type | Method and Description |
|---|---|
static WeekOfMonth |
fromValue(String v) |
String |
value() |
static WeekOfMonth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeekOfMonth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeekOfMonth FIRST
public static final WeekOfMonth SECOND
public static final WeekOfMonth THIRD
public static final WeekOfMonth FOURTH
public static final WeekOfMonth LAST
public static WeekOfMonth[] values()
for (WeekOfMonth c : WeekOfMonth.values()) System.out.println(c);
public static WeekOfMonth valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static WeekOfMonth fromValue(String v)
Copyright © 2018. All rights reserved.