codes.reactive.scalatime.temporal

RichDuration

final class RichDuration extends AnyVal

Enriches a Duration 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. RichDuration
  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 RichDuration(underlying: scalatime.Duration)

Value Members

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

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

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

    Obtains a copy of this duration multiplied by the scalar.

    Obtains a copy of this duration multiplied by the scalar.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

  4. def +(amount: Long, unit: scalatime.TemporalUnit): scalatime.Duration

    Obtains a copy of this duration with a duration added measured in terms of the specified unit.

    Obtains a copy of this duration with a duration added measured in terms of the specified unit.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

    UnsupportedTemporalTypeException

    - if the unit is not supported

  5. def +(duration: scalatime.Duration): scalatime.Duration

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

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

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

  6. def -(amount: Long, unit: scalatime.TemporalUnit): scalatime.Duration

    Obtains a copy of this duration with a duration subtracted measured in terms of the specified unit.

    Obtains a copy of this duration with a duration subtracted measured in terms of the specified unit.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

    UnsupportedTemporalTypeException

    - if the unit is not supported

  7. def -(duration: scalatime.Duration): scalatime.Duration

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

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

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

  8. def ->[B](y: B): (RichDuration, B)

    Implicit information
    This member is added by an implicit conversion from RichDuration to ArrowAssoc[RichDuration] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  9. def /(divisor: Int): scalatime.Duration

    Obtains a copy of this amount divided by the divisor.

    Obtains a copy of this amount divided by the divisor.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

  10. final def ==(arg0: Any): Boolean

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

    Definition Classes
    Any
  12. def ensuring(cond: (RichDuration) ⇒ Boolean, msg: ⇒ Any): RichDuration

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

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

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

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

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

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

    Definition Classes
    Any
  19. def toString(): String

    Definition Classes
    Any
  20. def unary_!: scalatime.Duration

    Swaps the sign of the total length of this duration.

    Swaps the sign of the total length of this duration. For example, PT1.3S will be returned as PT-1.3S.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

  21. val underlying: scalatime.Duration

  22. def [B](y: B): (RichDuration, B)

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

Inherited from AnyVal

Inherited from Any

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

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

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

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

Ungrouped