WeekFields (Java SE 26 & JDK 26)
- All Implemented Interfaces:
Serializable
-
Field Summary
Fields
The ISO-8601 definition, where a week starts on Monday and the first week has a minimum of 4 days.
The common definition of a week that starts on Sunday and the first week has a minimum of 1 day.
The unit that represents week-based-years for the purpose of addition and subtraction.
-
Method Summary
Returns a field to access the day of week based on this
WeekFields.booleanChecks if this
WeekFieldsis equal to the specified object.Gets the first day-of-week.
intGets the minimal number of days in the first week.
inthashCode()A hash code for this
WeekFields.of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) Obtains an instance of
WeekFieldsfrom the first day-of-week and minimal days.Obtains an instance of
WeekFieldsappropriate for a locale.toString()A string representation of this
WeekFieldsinstance.Returns a field to access the year of a week-based-year based on this
WeekFields.Returns a field to access the week of month based on this
WeekFields.Returns a field to access the week of a week-based-year based on this
WeekFields.Returns a field to access the week of year based on this
WeekFields.Methods declared in class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitCreates and returns a copy of this object.
protected voidDeprecated, for removal: This API element is subject to removal in a future version.
Returns the runtime class of this
Object.final voidWakes up a single thread that is waiting on this object's monitor.
final voidWakes up all threads that are waiting on this object's monitor.
final voidCauses the current thread to wait until it is awakened, typically by being notified or interrupted.
final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Field Details
-
ISO
-
SUNDAY_START
-
WEEK_BASED_YEARS
-
-
Method Details
-
of
-
of
-
getFirstDayOfWeek
-
getMinimalDaysInFirstWeek
-
dayOfWeek
-
weekOfMonth
-
weekOfYear
-
weekOfWeekBasedYear
-
weekBasedYear
-
equals
-
hashCode
-
toString
-