public enum MonthEnum extends Enum<MonthEnum>
Java class for MonthEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="MonthEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="January"/> <enumeration value="February"/> <enumeration value="March"/> <enumeration value="April"/> <enumeration value="May"/> <enumeration value="June"/> <enumeration value="July"/> <enumeration value="August"/> <enumeration value="September"/> <enumeration value="October"/> <enumeration value="November"/> <enumeration value="December"/> </restriction> </simpleType>
Enum Constant and Description |
---|
APRIL |
AUGUST |
DECEMBER |
FEBRUARY |
JANUARY |
JULY |
JUNE |
MARCH |
MAY |
NOVEMBER |
OCTOBER |
SEPTEMBER |
Modifier and Type | Method and Description |
---|---|
static MonthEnum |
fromValue(String v) |
String |
value() |
static MonthEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MonthEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MonthEnum JANUARY
public static final MonthEnum FEBRUARY
public static final MonthEnum MARCH
public static final MonthEnum APRIL
public static final MonthEnum MAY
public static final MonthEnum JUNE
public static final MonthEnum JULY
public static final MonthEnum AUGUST
public static final MonthEnum SEPTEMBER
public static final MonthEnum OCTOBER
public static final MonthEnum NOVEMBER
public static final MonthEnum DECEMBER
public static MonthEnum[] values()
for (MonthEnum c : MonthEnum.values()) System.out.println(c);
public static MonthEnum 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()
Copyright © 2017. All rights reserved.