codes.reactive.scalatime.impl

DurationOps

final case class DurationOps(underlying: Duration) extends AnyVal with Product with Serializable

Enriches a Duration with scala friendly methods.

Source
TemporalAmountOps.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DurationOps
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyVal
  7. NotNull
  8. 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 DurationOps(underlying: Duration)

Value Members

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

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

    Definition Classes
    Any
  3. def *(scalar: Int): 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: TemporalUnit): 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: Duration): 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: TemporalUnit): 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: Duration): 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): (DurationOps, B)

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

    Obtains a copy of this duration divided by the divisor.

    Obtains a copy of this duration divided by the divisor.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

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

    Definition Classes
    Any
  11. def asConcurrentDuration: Duration

    Obtains a scala.concurrent.duration.Duration from the value of this duration in nanoseconds.

    Obtains a scala.concurrent.duration.Duration from the value of this duration in nanoseconds.

    Exceptions thrown
    ArithmeticException

    - if numeric overflow occurs

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def ensuring(cond: (DurationOps) ⇒ Boolean, msg: ⇒ Any): DurationOps

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

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

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

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

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

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

    Definition Classes
    Any
  20. def unary_!: 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: Duration

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

    Implicit information
    This member is added by an implicit conversion from DurationOps to ArrowAssoc[DurationOps] 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 DurationOps 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:
    (durationOps: StringAdd).+(other)
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from DurationOps 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:
    (durationOps: StringAdd).self
    Definition Classes
    StringAdd
  3. val self: Any

    Implicit information
    This member is added by an implicit conversion from DurationOps 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:
    (durationOps: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: DurationOps

    Implicit information
    This member is added by an implicit conversion from DurationOps to ArrowAssoc[DurationOps] 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:
    (durationOps: ArrowAssoc[DurationOps]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: DurationOps

    Implicit information
    This member is added by an implicit conversion from DurationOps to Ensuring[DurationOps] 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:
    (durationOps: Ensuring[DurationOps]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Inherited by implicit conversion any2stringadd from DurationOps to StringAdd

Inherited by implicit conversion any2stringfmt from DurationOps to StringFormat

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

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

Ungrouped