|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use YearMonth | |
|---|---|
| org.threeten.bp | The main API for dates, times, instants, and durations. |
| Uses of YearMonth in org.threeten.bp |
|---|
| Fields in org.threeten.bp with type parameters of type YearMonth | |
|---|---|
static TemporalQuery<YearMonth> |
YearMonth.FROM
Simulate JDK 8 method reference YearMonth::from. |
| Methods in org.threeten.bp that return YearMonth | |
|---|---|
YearMonth |
Year.atMonth(int month)
Combines this year with a month to create a YearMonth. |
YearMonth |
Year.atMonth(Month month)
Combines this year with a month to create a YearMonth. |
static YearMonth |
YearMonth.from(TemporalAccessor temporal)
Obtains an instance of YearMonth from a temporal object. |
YearMonth |
YearMonth.minus(long amountToSubtract,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period subtracted. |
YearMonth |
YearMonth.minus(TemporalAmount amount)
Returns a copy of this year-month with the specified period subtracted. |
YearMonth |
YearMonth.minusMonths(long monthsToSubtract)
Returns a copy of this year-month with the specified period in months subtracted. |
YearMonth |
YearMonth.minusYears(long yearsToSubtract)
Returns a copy of this year-month with the specified period in years subtracted. |
static YearMonth |
YearMonth.now()
Obtains the current year-month from the system clock in the default time-zone. |
static YearMonth |
YearMonth.now(Clock clock)
Obtains the current year-month from the specified clock. |
static YearMonth |
YearMonth.now(ZoneId zone)
Obtains the current year-month from the system clock in the specified time-zone. |
static YearMonth |
YearMonth.of(int year,
int month)
Obtains an instance of YearMonth from a year and month. |
static YearMonth |
YearMonth.of(int year,
Month month)
Obtains an instance of YearMonth from a year and month. |
static YearMonth |
YearMonth.parse(CharSequence text)
Obtains an instance of YearMonth from a text string such as 2007-12. |
static YearMonth |
YearMonth.parse(CharSequence text,
DateTimeFormatter formatter)
Obtains an instance of YearMonth from a text string using a specific formatter. |
YearMonth |
YearMonth.plus(long amountToAdd,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period added. |
YearMonth |
YearMonth.plus(TemporalAmount amount)
Returns a copy of this year-month with the specified period added. |
YearMonth |
YearMonth.plusMonths(long monthsToAdd)
Returns a copy of this year-month with the specified period in months added. |
YearMonth |
YearMonth.plusYears(long yearsToAdd)
Returns a copy of this year-month with the specified period in years added. |
YearMonth |
YearMonth.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this year-month. |
YearMonth |
YearMonth.with(TemporalField field,
long newValue)
Returns a copy of this year-month with the specified field set to a new value. |
YearMonth |
YearMonth.withMonth(int month)
Returns a copy of this YearMonth with the month-of-year altered. |
YearMonth |
YearMonth.withYear(int year)
Returns a copy of this YearMonth with the year altered. |
| Methods in org.threeten.bp with parameters of type YearMonth | |
|---|---|
int |
YearMonth.compareTo(YearMonth other)
Compares this year-month to another year-month. |
boolean |
YearMonth.isAfter(YearMonth other)
Is this year-month after the specified year-month. |
boolean |
YearMonth.isBefore(YearMonth other)
Is this year-month before the specified year-month. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||