Uses of Class
org.threeten.bp.YearMonth
Packages that use YearMonth
-
Uses of YearMonth in org.threeten.bp
Methods in org.threeten.bp that return YearMonthModifier and TypeMethodDescriptionYear.atMonth(int month)
Combines this year with a month to create aYearMonth
.Combines this year with a month to create aYearMonth
.static YearMonth
YearMonth.from(TemporalAccessor temporal)
Obtains an instance ofYearMonth
from a temporal object.YearMonth.minus(long amountToSubtract, TemporalUnit unit)
Returns an object of the same type as this object with the specified period subtracted.YearMonth.minus(TemporalAmount amount)
Returns a copy of this year-month with the specified period subtracted.YearMonth.minusMonths(long monthsToSubtract)
Returns a copy of this year-month with the specified period in months subtracted.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
Obtains the current year-month from the specified clock.static YearMonth
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 ofYearMonth
from a year and month.static YearMonth
Obtains an instance ofYearMonth
from a year and month.static YearMonth
YearMonth.parse(CharSequence text)
Obtains an instance ofYearMonth
from a text string such as2007-12
.static YearMonth
YearMonth.parse(CharSequence text, DateTimeFormatter formatter)
Obtains an instance ofYearMonth
from a text string using a specific formatter.YearMonth.plus(long amountToAdd, TemporalUnit unit)
Returns an object of the same type as this object with the specified period added.YearMonth.plus(TemporalAmount amount)
Returns a copy of this year-month with the specified period added.YearMonth.plusMonths(long monthsToAdd)
Returns a copy of this year-month with the specified period in months added.YearMonth.plusYears(long yearsToAdd)
Returns a copy of this year-month with the specified period in years added.YearMonth.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this year-month.YearMonth.with(TemporalField field, long newValue)
Returns a copy of this year-month with the specified field set to a new value.YearMonth.withMonth(int month)
Returns a copy of thisYearMonth
with the month-of-year altered.YearMonth.withYear(int year)
Returns a copy of thisYearMonth
with the year altered.Methods in org.threeten.bp with parameters of type YearMonthModifier and TypeMethodDescriptionint
Compares this year-month to another year-month.boolean
Is this year-month after the specified year-month.boolean
Is this year-month before the specified year-month.