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

    dayOfWeek()

    Returns a field to access the day of week based on this WeekFields.

    boolean

    Checks if this WeekFields is equal to the specified object.

    Gets the first day-of-week.

    int

    Gets the minimal number of days in the first week.

    int

    hashCode()

    A hash code for this WeekFields.

    of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek)

    Obtains an instance of WeekFields from the first day-of-week and minimal days.

    Obtains an instance of WeekFields appropriate for a locale.

    toString()

    A string representation of this WeekFields instance.

    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, wait

    Creates and returns a copy of this object.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(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 void

    wait(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