Example usage for Java java.time MonthDay fields, constructors, methods, implement or subclass
The text is from its open source code.
Temporal | adjustInto(Temporal temporal) Adjusts the specified temporal object to have this month-day. |
LocalDate | atYear(int year) Combines this month-day with a year to create a LocalDate . |
int | compareTo(MonthDay other) Compares this month-day to another month-day. |
boolean | equals(Object obj) Checks if this month-day is equal to another month-day. |
String | format(DateTimeFormatter formatter) Formats this month-day using the specified formatter. |
MonthDay | from(TemporalAccessor temporal) Obtains an instance of MonthDay from a temporal object. |
int | get(TemporalField field) Gets the value of the specified field from this month-day as an int . |
int | getDayOfMonth() Gets the day-of-month field. |
long | getLong(TemporalField field) Gets the value of the specified field from this month-day as a long . |
Month | getMonth() Gets the month-of-year field using the Month enum. |
int | getMonthValue() Gets the month-of-year field from 1 to 12. |
int | hashCode() A hash code for this month-day. |
boolean | isAfter(MonthDay other) Checks if this month-day is after the specified month-day. |
boolean | isBefore(MonthDay other) Checks if this month-day is before the specified month-day. |
boolean | isSupported(TemporalField field) Checks if the specified field is supported. |
boolean | isValidYear(int year) Checks if the year is valid for this month-day. |
MonthDay | now() Obtains the current month-day from the system clock in the default time-zone. |
MonthDay | now(ZoneId zone) Obtains the current month-day from the system clock in the specified time-zone. |
MonthDay | now(Clock clock) Obtains the current month-day from the specified clock. |
MonthDay | of(Month month, int dayOfMonth) Obtains an instance of MonthDay . |
MonthDay | of(int month, int dayOfMonth) Obtains an instance of MonthDay . |
MonthDay | parse(CharSequence text) Obtains an instance of MonthDay from a text string such as --12-03 . |
MonthDay | parse(CharSequence text, DateTimeFormatter formatter) Obtains an instance of MonthDay from a text string using a specific formatter. |
R | query(TemporalQuery Queries this month-day using the specified query. |
ValueRange | range(TemporalField field) Gets the range of valid values for the specified field. |
String | toString() Outputs this month-day as a String , such as --12-03 . |
MonthDay | with(Month month) Returns a copy of this MonthDay with the month-of-year altered. |
MonthDay | withDayOfMonth(int dayOfMonth) Returns a copy of this MonthDay with the day-of-month altered. |
MonthDay | withMonth(int month) Returns a copy of this MonthDay with the month-of-year altered. |