Static Private ENUMSStatic minusReturns the day-of-week that is the specified number of days before this one.
The calculation rolls around the start of the year from Monday to Sunday. The specified period may be negative.
This instance is immutable and unaffected by this method call.
the resulting day-of-week, not null
the days to subtract, positive or negative
the DayOfWeek from where the subtraction is computed
Static ofObtains an instance of DayOfWeek from an int value.
DayOfWeek is an enum representing the 7 days of the week.
This factory allows the enum to be obtained from the int value.
The int value follows the ISO-8601 standard, from 1 (Monday) to 7 (Sunday).
the day-of-week singleton, not null
DateTimeException if the day-of-week is invalid
the day-of-week to represent, from 1 (Monday) to 7 (Sunday)
Static plusReturns the day-of-week that is the specified number of days after this one.
The calculation rolls around the end of the week from Sunday to Monday. The specified period may be negative.
This instance is immutable and unaffected by this method call.
the resulting day-of-week, not null
the days to add, positive or negative
the DayOfWeek from where the addition is computed
Static valueGets the day-of-week int value.
The values are numbered following the ISO-8601 standard, from 1 (Monday) to 7 (Sunday).
the day-of-week, from 1 (Monday) to 7 (Sunday)
Static weekStatic weekGenerated using TypeDoc
Private cache of all the constants.