WeekDay Class

public final class WeekDay
extends ExpandableStringEnum<WeekDay>

The weekday enum.

Field Summary

Modifier and Type Field and Description
static final WeekDay FRIDAY

Static value Friday for WeekDay.

static final WeekDay MONDAY

Static value Monday for WeekDay.

static final WeekDay SATURDAY

Static value Saturday for WeekDay.

static final WeekDay SUNDAY

Static value Sunday for WeekDay.

static final WeekDay THURSDAY

Static value Thursday for WeekDay.

static final WeekDay TUESDAY

Static value Tuesday for WeekDay.

static final WeekDay WEDNESDAY

Static value Wednesday for WeekDay.

Constructor Summary

Constructor Description
WeekDay()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of WeekDay value.

Method Summary

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

Creates or finds a WeekDay from its string representation.

static Collection<WeekDay> values()

Gets known WeekDay values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

FRIDAY

public static final WeekDay FRIDAY

Static value Friday for WeekDay.

MONDAY

public static final WeekDay MONDAY

Static value Monday for WeekDay.

SATURDAY

public static final WeekDay SATURDAY

Static value Saturday for WeekDay.

SUNDAY

public static final WeekDay SUNDAY

Static value Sunday for WeekDay.

THURSDAY

public static final WeekDay THURSDAY

Static value Thursday for WeekDay.

TUESDAY

public static final WeekDay TUESDAY

Static value Tuesday for WeekDay.

WEDNESDAY

public static final WeekDay WEDNESDAY

Static value Wednesday for WeekDay.

Constructor Details

WeekDay

@Deprecated
public WeekDay()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of WeekDay value.

Method Details

fromString

public static WeekDay fromString(String name)

Creates or finds a WeekDay from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding WeekDay.

values

public static Collection values()

Gets known WeekDay values.

Returns:

known WeekDay values.

Applies to