Class

codes.reactive.scalatime.impl

DurationOps

Related Doc: package impl

Permalink

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, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DurationOps
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyVal
  7. 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 DurationOps(underlying: Duration)

    Permalink

Value Members

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

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

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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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)

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

    Permalink

    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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  19. def unary_!: Duration

    Permalink

    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

  20. val underlying: Duration

    Permalink
  21. def [B](y: B): (DurationOps, B)

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

Shadowed Implicit Value Members

  1. def +(other: String): String

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

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

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

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

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

Ungrouped