public enum WeekDay extends Enum<WeekDay>
Modifier and Type | Method and Description |
---|---|
WeekDay |
next() |
WeekDay |
prev() |
static WeekDay |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeekDay[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeekDay SUN
public static final WeekDay MON
public static final WeekDay TUE
public static final WeekDay WED
public static final WeekDay THU
public static final WeekDay FRI
public static final WeekDay SAT
public static WeekDay[] values()
for (WeekDay c : WeekDay.values()) System.out.println(c);
public static WeekDay 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 WeekDay next()
public WeekDay prev()
Copyright © 2017. All Rights Reserved.