Packages

c

little.time.Implicits

YearMonthType

implicit final class YearMonthType extends AnyVal

Provides extension methods to java.time.YearMonth

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. YearMonthType
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new YearMonthType(month: YearMonth)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(amount: TemporalAmount): YearMonth

    Gets month with specified amount added.

    Gets month with specified amount added.

    amount

    temporal amount

  4. def +(months: Long): YearMonth

    Gets month with specified number of months added.

    Gets month with specified number of months added.

    months

    number of months

  5. def -(amount: TemporalAmount): YearMonth

    Gets month with specified amount subtracted.

    Gets month with specified amount subtracted.

    amount

    temporal amount

  6. def -(months: Long): YearMonth

    Gets month with specified number of months subtracted.

    Gets month with specified number of months subtracted.

    months

    number of months

  7. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def atEndOfYear: YearMonth

    Gets month adjusted to last month of year.

  10. def atStartOfYear: YearMonth

    Gets month adjusted to first month of year.

  11. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. 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

    IllegalArgumentException if step is zero.

  14. 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

  15. 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

  16. 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

  17. val month: YearMonth
  18. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped