Serializable, Comparable<DayOfWeek>public enum DayOfWeek extends Enum<DayOfWeek>
| Enum Constant | Description |
|---|---|
FRIDAY |
|
MONDAY |
|
SATURDAY |
|
SUNDAY |
|
THURSDAY |
|
TUESDAY |
|
WEDNESDAY |
| Modifier and Type | Method | Description |
|---|---|---|
static DayOfWeek |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static DayOfWeek[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName("sunday")
public static final DayOfWeek SUNDAY
@SerializedName("monday")
public static final DayOfWeek MONDAY
@SerializedName("tuesday")
public static final DayOfWeek TUESDAY
@SerializedName("wednesday")
public static final DayOfWeek WEDNESDAY
@SerializedName("thursday")
public static final DayOfWeek THURSDAY
@SerializedName("friday")
public static final DayOfWeek FRIDAY
@SerializedName("saturday")
public static final DayOfWeek SATURDAY
public static DayOfWeek[] values()
for (DayOfWeek c : DayOfWeek.values()) System.out.println(c);
public static DayOfWeek 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 nullCopyright © 2018 The Apache Software Foundation. All rights reserved.