Java java.time DayOfWeek fields, constructors, methods, implement or subclass

Example usage for Java java.time DayOfWeek fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.time DayOfWeek.

The text is from its open source code.

Field

DayOfWeekMONDAY
The singleton instance for the day-of-week of Monday.
DayOfWeekTUESDAY
The singleton instance for the day-of-week of Tuesday.
DayOfWeekWEDNESDAY
The singleton instance for the day-of-week of Wednesday.
DayOfWeekTHURSDAY
The singleton instance for the day-of-week of Thursday.
DayOfWeekFRIDAY
The singleton instance for the day-of-week of Friday.
DayOfWeekSATURDAY
The singleton instance for the day-of-week of Saturday.
DayOfWeekSUNDAY
The singleton instance for the day-of-week of Sunday.

Method

TemporaladjustInto(Temporal temporal)
Adjusts the specified temporal object to have this day-of-week.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
DayOfWeekfrom(TemporalAccessor temporal)
Obtains an instance of DayOfWeek from a temporal object.
intget(TemporalField field)
Gets the value of the specified field from this day-of-week as an int .
StringgetDisplayName(TextStyle style, Locale locale)
Gets the textual representation, such as 'Mon' or 'Friday'.
longgetLong(TemporalField field)
Gets the value of the specified field from this day-of-week as a long .
intgetValue()
Gets the day-of-week int value.
booleanisSupported(TemporalField field)
Checks if the specified field is supported.
DayOfWeekminus(long days)
Returns the day-of-week that is the specified number of days before this one.
DayOfWeekof(int dayOfWeek)
Obtains an instance of DayOfWeek from an int value.
DayOfWeekplus(long days)
Returns the day-of-week that is the specified number of days after this one.
Rquery(TemporalQuery query)
Queries this day-of-week using the specified query.
ValueRangerange(TemporalField field)
Gets the range of valid values for the specified field.