Uses of Class
javax.time.calendar.YearMonth
Packages that use YearMonth
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of YearMonth in javax.time.calendar
Fields in javax.time.calendar with type parameters of type YearMonthModifier and TypeFieldDescriptionprivate static final CalendricalRule<YearMonth> YearMonth.Rule.INSTANCEMethods in javax.time.calendar that return YearMonthModifier and TypeMethodDescriptionYear.atMonth(int monthOfYear) Returns a year-month formed from this year at the specified month.Year.atMonth(MonthOfYear monthOfYear) Returns a year-month formed from this year at the specified month.protected YearMonthYearMonth.Rule.derive(Calendrical calendrical) YearMonth.minus(PeriodProvider periodProvider) Returns a copy of thisYearMonthwith the specified period subtracted.YearMonth.minusMonths(long months) Returns a copy of this YearMonth with the specified period in months subtracted.YearMonth.minusYears(long years) Returns a copy of this YearMonth with the specified period in years subtracted.static YearMonthYearMonth.now()Obtains the current year-month from the system clock in the default time-zone.static YearMonthObtains the current year-month from the specified clock.static YearMonthYearMonth.of(int year, int monthOfYear) Obtains an instance ofYearMonthfrom a year and month.static YearMonthYearMonth.of(int year, MonthOfYear monthOfYear) Obtains an instance ofYearMonthfrom a year and month.static YearMonthYearMonth.of(Calendrical calendrical) Obtains an instance ofYearMonthfrom a Calendrical.static YearMonthObtains an instance ofYearMonthfrom a text string such as2007-12.static YearMonthYearMonth.parse(String text, DateTimeFormatter formatter) Obtains an instance ofYearMonthfrom a text string using a specific formatter.YearMonth.plus(PeriodProvider periodProvider) Returns a copy of thisYearMonthwith the specified period added.YearMonth.plusMonths(long months) Returns a copy of this YearMonth with the specified period in months added.YearMonth.plusYears(long years) Returns a copy of this YearMonth with the specified period in years added.YearMonth.rollMonthOfYear(int months) Rolls the month-of-year, adding the specified number of months to a copy of thisYearMonth.private YearMonthYearMonth.with(int newYear, MonthOfYear newMonth) Returns a copy of this year-month with the new year and month, checking to see if a new object is in fact required.YearMonth.with(MonthOfYear monthOfYear) Returns a copy of this YearMonth with the month-of-year altered.Returns a copy of this YearMonth with the year altered.YearMonth.withMonthOfYear(int monthOfYear) Returns a copy of thisYearMonthwith the month-of-year altered.YearMonth.withYear(int year) Returns a copy of thisYearMonthwith the year altered.Clock.yearMonth()Gets the current year-month.Methods in javax.time.calendar that return types with arguments of type YearMonthModifier and TypeMethodDescriptionstatic CalendricalRule<YearMonth> YearMonth.rule()Gets the rule for the year-month.Methods in javax.time.calendar with parameters of type YearMonthModifier and TypeMethodDescriptionintCompares this year-month to another year-month.booleanIs this year-month after the specified year-month.booleanIs this year-month before the specified year-month.