DayOfWeek Class

public final class DayOfWeek
extends ExpandableStringEnum<DayOfWeek>

Day of maintenance window.

Field Summary

Modifier and Type Field and Description
static final DayOfWeek FRIDAY

Static value Friday for DayOfWeek.

static final DayOfWeek MONDAY

Static value Monday for DayOfWeek.

static final DayOfWeek SATURDAY

Static value Saturday for DayOfWeek.

static final DayOfWeek SUNDAY

Static value Sunday for DayOfWeek.

static final DayOfWeek THURSDAY

Static value Thursday for DayOfWeek.

static final DayOfWeek TUESDAY

Static value Tuesday for DayOfWeek.

static final DayOfWeek WEDNESDAY

Static value Wednesday for DayOfWeek.

Constructor Summary

Constructor Description
DayOfWeek()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DayOfWeek value.

Method Summary

Modifier and Type Method and Description
static DayOfWeek fromString(String name)

Creates or finds a DayOfWeek from its string representation.

static Collection<DayOfWeek> values()

Gets known DayOfWeek values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

FRIDAY

public static final DayOfWeek FRIDAY

Static value Friday for DayOfWeek.

MONDAY

public static final DayOfWeek MONDAY

Static value Monday for DayOfWeek.

SATURDAY

public static final DayOfWeek SATURDAY

Static value Saturday for DayOfWeek.

SUNDAY

public static final DayOfWeek SUNDAY

Static value Sunday for DayOfWeek.

THURSDAY

public static final DayOfWeek THURSDAY

Static value Thursday for DayOfWeek.

TUESDAY

public static final DayOfWeek TUESDAY

Static value Tuesday for DayOfWeek.

WEDNESDAY

public static final DayOfWeek WEDNESDAY

Static value Wednesday for DayOfWeek.

Constructor Details

DayOfWeek

@Deprecated
public DayOfWeek()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DayOfWeek value.

Method Details

fromString

public static DayOfWeek fromString(String name)

Creates or finds a DayOfWeek from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DayOfWeek.

values

public static Collection values()

Gets known DayOfWeek values.

Returns:

known DayOfWeek values.

Applies to