Initializer |
GregorianYearMonth(Integer year, Month month) Parameters:
|
Attributes | |
leapYear | Source Codeshared actual Boolean leapYear True if the year of the date is a leap year. Refines ReadableYear.leapYear |
month | Source Codeshared actual Month month Month of the year value of the date. Refines ReadableMonth.month |
string | Source Codeshared actual String string Returns ISO-8601 formatted String representation of this year and month moment. Reference: https://en.wikipedia.org/wiki/ISO_8601 Refines Object.string |
year | Source Codeshared actual Integer year The year of the date. Refines ReadableYear.year |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Enumerable<Other> |
Attributes inherited from: Ordinal<Other> |
Attributes inherited from: ReadableMonth |
Attributes inherited from: ReadableYear |
Attributes inherited from: YearMonth |
Methods | |
compare | Source Codeshared actual Comparison compare(YearMonth other) Compares this value with the given value, returning:
For any two values x <=> y Implementations must respect the constraints that:
Refines Comparable.compare |
minusMonths | Source Codeshared actual YearMonth minusMonths(Integer months) Returns a copy of this instance with the specified number of months subtracted. Refines MonthBehavior.minusMonths |
minusYears | Source Codeshared actual YearMonth minusYears(Integer years) Returns a copy of this instance with the specified number of years subtracted. Refines YearBehavior.minusYears |
neighbour | Source Codeshared actual YearMonth neighbour(Integer offset) The indirect successor or predecessor at the given
Refines Enumerable.neighbour |
offset | Source Codeshared actual Integer offset(YearMonth other) Compute the offset from the given value, where:
Refines Enumerable.offset |
plusMonths | Source Codeshared actual YearMonth plusMonths(Integer months) Returns a copy of this instance with the specified number of months added. Refines MonthBehavior.plusMonths |
plusYears | Source Codeshared actual YearMonth plusYears(Integer years) Returns a copy of this instance with the specified number of years added. Refines YearBehavior.plusYears |
withMonth | Source Codeshared actual YearMonth withMonth(Month month) Returns a copy of this instance with the specified month of year. Refines MonthBehavior.withMonth |
withYear | Source Codeshared actual YearMonth withYear(Integer year) Returns a copy of this instance with the specified year. Refines YearBehavior.withYear |
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Comparable<Other> |
Methods inherited from: Enumerable<Other> |
Methods inherited from: MonthBehavior<Element> |
Methods inherited from: YearBehavior<Element> |
Methods inherited from: YearMonth |