public enum MonthEnum extends Enum<MonthEnum>
Enum Constant and Description |
---|
APRIL |
AUGUST |
DECEMBER |
FEBRUARY |
JANUARY |
JULY |
JUNE |
MARCH |
MAY |
NOVEMBER |
OCTOBER |
SEPTEMBER |
Modifier and Type | Method and Description |
---|---|
String |
getLibelle() |
String |
toString() |
static MonthEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MonthEnum |
valueOf(String month,
MonthEnum defaultValue) |
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 getLibelle()
Copyright © 2004–2020 CodeLutin. All rights reserved.