codes.reactive.scalatime.temporal

RichDuration

final class RichDuration extends AnyVal

Enriches a Duration with scala friendly methods.

Source
RichTemporalAmount.scala
Linear Supertypes
AnyVal, NotNull, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RichDuration
  2. AnyVal
  3. NotNull
  4. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  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 any2ArrowAssoc 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 any2Ensuring 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 any2Ensuring 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 any2Ensuring 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 any2Ensuring 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 performed by method any2stringfmt 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 any2ArrowAssoc 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 StringAdd 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: StringAdd).+(other)
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from RichDuration to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (richDuration: StringAdd).self
    Definition Classes
    StringAdd
  3. val self: Any

    Implicit information
    This member is added by an implicit conversion from RichDuration to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (richDuration: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: RichDuration

    Implicit information
    This member is added by an implicit conversion from RichDuration to ArrowAssoc[RichDuration] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (richDuration: ArrowAssoc[RichDuration]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: RichDuration

    Implicit information
    This member is added by an implicit conversion from RichDuration to Ensuring[RichDuration] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (richDuration: Ensuring[RichDuration]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Inherited by implicit conversion any2stringadd from RichDuration to StringAdd

Inherited by implicit conversion any2stringfmt from RichDuration to StringFormat

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

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

Ungrouped