public enum WeekEnum extends Enum<WeekEnum>
Java class for WeekEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="WeekEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="Sunday"/> <enumeration value="Monday"/> <enumeration value="Tuesday"/> <enumeration value="Wednesday"/> <enumeration value="Thursday"/> <enumeration value="Friday"/> <enumeration value="Saturday"/> </restriction> </simpleType>
Enum Constant and Description |
---|
FRIDAY |
MONDAY |
SATURDAY |
SUNDAY |
THURSDAY |
TUESDAY |
WEDNESDAY |
Modifier and Type | Method and Description |
---|---|
static WeekEnum |
fromValue(String v) |
String |
value() |
static WeekEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeekEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeekEnum SUNDAY
public static final WeekEnum MONDAY
public static final WeekEnum TUESDAY
public static final WeekEnum WEDNESDAY
public static final WeekEnum THURSDAY
public static final WeekEnum FRIDAY
public static final WeekEnum SATURDAY
public static WeekEnum[] values()
for (WeekEnum c : WeekEnum.values()) System.out.println(c);
public static WeekEnum 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.