public enum DaysOfWeek extends Enum<DaysOfWeek>
Enum Constant and Description |
---|
FRIDAY
Enum value Friday.
|
MONDAY
Enum value Monday.
|
SATURDAY
Enum value Saturday.
|
SUNDAY
Enum value Sunday.
|
THURSDAY
Enum value Thursday.
|
TUESDAY
Enum value Tuesday.
|
WEDNESDAY
Enum value Wednesday.
|
Modifier and Type | Method and Description |
---|---|
static DaysOfWeek |
fromString(String value)
Parses a serialized value to a DaysOfWeek instance.
|
String |
toString() |
static DaysOfWeek |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DaysOfWeek[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DaysOfWeek SUNDAY
public static final DaysOfWeek MONDAY
public static final DaysOfWeek TUESDAY
public static final DaysOfWeek WEDNESDAY
public static final DaysOfWeek THURSDAY
public static final DaysOfWeek FRIDAY
public static final DaysOfWeek SATURDAY
public static DaysOfWeek[] values()
public static DaysOfWeek 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 static DaysOfWeek fromString(String value)
value
- the serialized value to parse.public String toString()
toString
in class Enum<DaysOfWeek>
Copyright © 2021 Microsoft Corporation. All rights reserved.