DayOfWeek.of

Obtains an instance of {@code DayOfWeek} from an {@code int} value. !(p) {@code DayOfWeek} is an enum representing the 7 days of the week. This factory allows the enum to be obtained from the {@code int} value. The {@code int} value follows the ISO-8601 standard, from 1 (Monday) to 7 (Sunday).

@param dayOfWeek the day-of-week to represent, from 1 (Monday) to 7 (Sunday) @return the day-of-week singleton, not null @throws DateTimeException if the day-of-week is invalid

class DayOfWeek
static
of
()

Meta