codes.reactive.scalatime.temporal

RichPeriod

final class RichPeriod extends AnyVal

Enriches a Period with scala friendly methods.

Source
RichTemporalAmount.scala
Linear Supertypes
AnyVal, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RichPeriod
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichPeriod(underlying: scalatime.Period)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. def *(scalar: Int): scalatime.Period

    Obtains a copy of this period multiplied by the scalar.

    Obtains a copy of this period multiplied by the scalar.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

  4. def +(amount: scalatime.TemporalAmount): scalatime.Period

    Obtains a copy of this period with the specified period added.

    Obtains a copy of this period with the specified period added.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

  5. def -(amount: scalatime.TemporalAmount): scalatime.Period

    Obtains a copy of this period with the specified period subtracted.

    Obtains a copy of this period with the specified period subtracted.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

  6. def ->[B](y: B): (RichPeriod, B)

    Implicit information
    This member is added by an implicit conversion from RichPeriod to ArrowAssoc[RichPeriod] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def ensuring(cond: (RichPeriod) ⇒ Boolean, msg: ⇒ Any): RichPeriod

    Implicit information
    This member is added by an implicit conversion from RichPeriod to Ensuring[RichPeriod] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (RichPeriod) ⇒ Boolean): RichPeriod

    Implicit information
    This member is added by an implicit conversion from RichPeriod to Ensuring[RichPeriod] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): RichPeriod

    Implicit information
    This member is added by an implicit conversion from RichPeriod to Ensuring[RichPeriod] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): RichPeriod

    Implicit information
    This member is added by an implicit conversion from RichPeriod to Ensuring[RichPeriod] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from RichPeriod to StringFormat[RichPeriod] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  14. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def toString(): String

    Definition Classes
    Any
  17. def unary_!: scalatime.Period

    Obtains an instance of this type with each amount in this period negated.

    Obtains an instance of this type with each amount in this period negated. For example, a period of "2 years, -3 months and 4 days" will be negated to "-2 years, 3 months and -4 days". No normalization is performed.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs, which only happens if one of the units has the value Long.MIN_VALUE

  18. val underlying: scalatime.Period

  19. def [B](y: B): (RichPeriod, B)

    Implicit information
    This member is added by an implicit conversion from RichPeriod to ArrowAssoc[RichPeriod] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from RichPeriod to any2stringadd[RichPeriod] 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:
    (richPeriod: any2stringadd[RichPeriod]).+(other)
    Definition Classes
    any2stringadd

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd from RichPeriod to any2stringadd[RichPeriod]

Inherited by implicit conversion StringFormat from RichPeriod to StringFormat[RichPeriod]

Inherited by implicit conversion Ensuring from RichPeriod to Ensuring[RichPeriod]

Inherited by implicit conversion ArrowAssoc from RichPeriod to ArrowAssoc[RichPeriod]

Ungrouped