Packages

final case class YearOps(underlying: Year) extends AnyVal with Product with Serializable

Enriches Year instances with additional methods.

Source
YearOps.scala
Linear Supertypes
Serializable, Product, Equals, AnyVal, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. YearOps
  2. Serializable
  3. Product
  4. Equals
  5. AnyVal
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new YearOps(underlying: Year)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(years: Int): Year

    Obtains a year with the specified number of years added.

  4. def -(years: Int): Year

    Obtains a year with the specified number of years subtracted.

  5. def ->[B](y: B): (YearOps, B)
    Implicit
    This member is added by an implicit conversion from YearOps toArrowAssoc[YearOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. def /(monthDay: MonthDay): LocalDate

    Obtains a LocalDate by combining this year with the specified MonthDay.

  7. def /(month: Int): YearMonth

    Obtains a YearMonth by combining this year with the specified month, from 1 (January) to 12 (December).

    Obtains a YearMonth by combining this year with the specified month, from 1 (January) to 12 (December).

    Exceptions thrown

    DateTimeException if the month is invalid.

  8. def /(month: Month): YearMonth

    Obtains a YearMonth by combining this year with the specified java.time.Month.

  9. def <(other: Year): Boolean

    Returns true if this year is before the specified one.

  10. def <=(other: Year): Boolean

    Returns true if this year is equal to or before the specified one.

  11. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  12. def >(other: Year): Boolean

    Returns true if this year is after the specified one.

  13. def >=(other: Year): Boolean

    Returns true if this year is equal to or after the specified one.

  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def ensuring(cond: (YearOps) => Boolean, msg: => Any): YearOps
    Implicit
    This member is added by an implicit conversion from YearOps toEnsuring[YearOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (YearOps) => Boolean): YearOps
    Implicit
    This member is added by an implicit conversion from YearOps toEnsuring[YearOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: => Any): YearOps
    Implicit
    This member is added by an implicit conversion from YearOps toEnsuring[YearOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): YearOps
    Implicit
    This member is added by an implicit conversion from YearOps toEnsuring[YearOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from YearOps toStringFormat[YearOps] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def productElementNames: Iterator[String]
    Definition Classes
    Product
  23. val underlying: Year
  24. def |>(formatter: DateTimeFormatter): String

    Formats this year using the specified formatter.

    Formats this year using the specified formatter.

    Exceptions thrown

    DateTimeException - if an error occurs during printing

  25. def (formatter: DateTimeFormatter): String

Shadowed Implicit Value Members

  1. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from YearOps toany2stringadd[YearOps] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (yearOps: any2stringadd[YearOps]).+(other)
    Definition Classes
    any2stringadd

Deprecated Value Members

  1. def [B](y: B): (YearOps, B)
    Implicit
    This member is added by an implicit conversion from YearOps toArrowAssoc[YearOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd fromYearOps to any2stringadd[YearOps]

Inherited by implicit conversion StringFormat fromYearOps to StringFormat[YearOps]

Inherited by implicit conversion Ensuring fromYearOps to Ensuring[YearOps]

Inherited by implicit conversion ArrowAssoc fromYearOps to ArrowAssoc[YearOps]

Ungrouped