uk.co.bigbeeconsultants.http.util

Duration

case class Duration(microseconds: Long) extends Ordered[Duration] with Product with Serializable

Provides a simple container for time durations measured in microseconds. Possible operations include summing durations together and calculating averages.

This is a bit like the class of the same name in Joda Time, except that the resolution is microseconds in this case.

microseconds

a number representing a time duration; negative numbers are unusual but not prohibited.

Linear Supertypes
Serializable, Serializable, Product, Equals, Ordered[Duration], Comparable[Duration], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Duration
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Duration(microseconds: Long)

    microseconds

    a number representing a time duration; negative numbers are unusual but not prohibited.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

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

    Definition Classes
    AnyRef → Any
  4. def *(factor: Int): Duration

  5. def +(duration: Duration): Duration

  6. def +(microseconds: Long): Duration

  7. def -(microseconds: Long): Duration

  8. def -(duration: Duration): Duration

  9. def /(divisor: Int): Duration

  10. def <(that: Duration): Boolean

    Definition Classes
    Ordered
  11. def <=(that: Duration): Boolean

    Definition Classes
    Ordered
  12. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  14. def >(that: Duration): Boolean

    Definition Classes
    Ordered
  15. def >=(that: Duration): Boolean

    Definition Classes
    Ordered
  16. def abs: Duration

  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def compare(that: Duration): Int

    Definition Classes
    Duration → Ordered
  20. def compareTo(that: Duration): Int

    Definition Classes
    Ordered → Comparable
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def max(other: Duration): Duration

  26. val microseconds: Long

    a number representing a time duration; negative numbers are unusual but not prohibited.

  27. def min(other: Duration): Duration

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    Duration → AnyRef → Any
  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[Duration]

Inherited from Comparable[Duration]

Inherited from AnyRef

Inherited from Any

Ungrouped