All Implemented Interfaces:
Serializable, Comparable<MonthDay>, TemporalAccessor, TemporalAdjuster

  • Method Summary

    Adjusts the specified temporal object to have this month-day.

    atYear(int year)

    Combines this month-day with a year to create a LocalDate.

    int

    Compares this month-day to another month-day.

    boolean

    Checks if this month-day is equal to another month-day.

    Formats this month-day using the specified formatter.

    Obtains an instance of MonthDay from a temporal object.

    int

    Gets the value of the specified field from this month-day as an int.

    int

    Gets the day-of-month field.

    long

    Gets the value of the specified field from this month-day as a long.

    getMonth()

    Gets the month-of-year field using the Month enum.

    int

    Gets the month-of-year field from 1 to 12.

    int

    hashCode()

    A hash code for this month-day.

    boolean

    Checks if this month-day is after the specified month-day.

    boolean

    Checks if this month-day is before the specified month-day.

    boolean

    Checks if the specified field is supported.

    boolean

    isValidYear(int year)

    Checks if the year is valid for this month-day.

    now()

    Obtains the current month-day from the system clock in the default time-zone.

    Obtains the current month-day from the specified clock.

    Obtains the current month-day from the system clock in the specified time-zone.

    of(int month, int dayOfMonth)

    Obtains an instance of MonthDay.

    of(Month month, int dayOfMonth)

    Obtains an instance of MonthDay.

    Obtains an instance of MonthDay from a text string such as --12-03.

    Obtains an instance of MonthDay from a text string using a specific formatter.

    <R> R

    Queries this month-day using the specified query.

    Gets the range of valid values for the specified field.

    toString()

    Outputs this month-day as a String, such as --12-03.

    Returns a copy of this MonthDay with the month-of-year altered.

    withDayOfMonth(int dayOfMonth)

    Returns a copy of this MonthDay with the day-of-month altered.

    withMonth(int month)

    Returns a copy of this MonthDay with the month-of-year altered.

    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.

  • Method Details

    • now

    • now

    • now

    • of

    • of

    • from

    • parse

    • parse

    • isSupported

    • range

    • get

    • getLong

    • getMonthValue

    • getMonth

    • getDayOfMonth

    • isValidYear

    • withMonth

    • with

    • withDayOfMonth

    • query

    • adjustInto

    • format

    • atYear

    • compareTo

    • isAfter

    • isBefore

    • equals

    • hashCode

    • toString