implicit final class YearMonthType extends AnyVal
Provides extension methods to java.time.YearMonth
- Alphabetic
- By Inheritance
- YearMonthType
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new YearMonthType(month: YearMonth)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(amount: TemporalAmount): YearMonth
Gets month with specified amount added.
Gets month with specified amount added.
- amount
temporal amount
-
def
+(months: Long): YearMonth
Gets month with specified number of months added.
Gets month with specified number of months added.
- months
number of months
-
def
-(amount: TemporalAmount): YearMonth
Gets month with specified amount subtracted.
Gets month with specified amount subtracted.
- amount
temporal amount
-
def
-(months: Long): YearMonth
Gets month with specified number of months subtracted.
Gets month with specified number of months subtracted.
- months
number of months
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atEndOfYear: YearMonth
Gets month adjusted to last month of year.
-
def
atStartOfYear: YearMonth
Gets month adjusted to first month of year.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterateTo(end: YearMonth, step: Period = Period.ofMonths(1)): Iterator[YearMonth]
Creates iterator to end month (inclusive).
Creates iterator to end month (inclusive).
- end
end month
- step
period by which to step
- Exceptions thrown
IllegalArgumentExceptionifstepis zero.
-
def
iterateUntil(end: YearMonth, step: Period = Period.ofMonths(1)): Iterator[YearMonth]
Creates iterator to end month (exclusive).
Creates iterator to end month (exclusive).
- end
end month
- step
period by which to step
-
def
max(other: YearMonth): YearMonth
Compares to other month and returns the greater value.
Compares to other month and returns the greater value.
- other
other month
-
def
min(other: YearMonth): YearMonth
Compares to other month and returns the lesser value.
Compares to other month and returns the lesser value.
- other
other month
- val month: YearMonth
-
def
toString(): String
- Definition Classes
- Any