Packages

object Duration extends TimeLikeOps[Duration] with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Duration
  2. Serializable
  3. Serializable
  4. TimeLikeOps
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val Bottom: Duration

    Duration Bottom is smaller than any other duration, except for itself.

    Duration Bottom is smaller than any other duration, except for itself. Bottom's complement is Top.

    Definition Classes
    DurationTimeLikeOps
  5. val NanosPerDay: Long
  6. val NanosPerHour: Long
  7. val NanosPerMicrosecond: Long
  8. val NanosPerMillisecond: Long
  9. val NanosPerMinute: Long
  10. val NanosPerSecond: Long
  11. val Top: Duration

    Duration Top is greater than any other duration, except for itself.

    Duration Top is greater than any other duration, except for itself. Top's complement is Bottom.

    Definition Classes
    DurationTimeLikeOps
  12. val Undefined: Duration
    Definition Classes
    DurationTimeLikeOps
  13. val Zero: Duration
    Definition Classes
    DurationTimeLikeOps
  14. def apply(value: Long, unit: TimeUnit): Duration

    Create a duration from a java.util.concurrent.TimeUnit.

  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def fromFractionalSeconds(seconds: Double): Duration

    Make a new This from the given number of seconds.

    Make a new This from the given number of seconds. Because this method takes a Double, it can represent values less than a second. Note however that there is some slop in floating-point conversion that limits precision. Currently we can assume at least microsecond precision.

    Definition Classes
    DurationTimeLikeOps
  21. def fromMicroseconds(micros: Long): Duration
    Definition Classes
    DurationTimeLikeOps
  22. def fromMilliseconds(millis: Long): Duration
    Definition Classes
    DurationTimeLikeOps
  23. def fromNanoseconds(nanoseconds: Long): Duration

    Make a new This from the given number of nanoseconds

    Make a new This from the given number of nanoseconds

    Definition Classes
    DurationTimeLikeOps
  24. def fromSeconds(seconds: Int): Duration
    Definition Classes
    DurationTimeLikeOps
  25. def fromTimeUnit(value: Long, unit: TimeUnit): Duration

    Create a duration from a java.util.concurrent.TimeUnit.

    Create a duration from a java.util.concurrent.TimeUnit. Synonym for apply.

  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def parse(s: String): Duration

    Parse a String representation of a duration.

    Parse a String representation of a duration. This method will parse any duration generated by Duration.toString.

    The format is either one of the special values, or non-empty sequence of durations. Each duration is a sign, an integer, a dot, and a unit. The unit may be plural or singular. The parser will ignore whitespace around signs and at the beginning and end. (That is, it accepts "1.second + 1.minute" and " 1.second ".) It's permissible to omit the sign before the first duration.

    The special values are "Duration.Top", "Duration.Bottom" and "Duration.Undefined".

    The parser is case-insensitive.

    Exceptions thrown

    RuntimeException if the string cannot be parsed.

  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  38. object Finite

    An extractor for finite TimeLikes; eg.:

    An extractor for finite TimeLikes; eg.:

    duration match {
      case Duration.Finite(d) => ...
      case Duration.Top => ..
    Definition Classes
    TimeLikeOps
  39. object Nanoseconds

    An extractor for finite This, yielding its value in nanoseconds.

    An extractor for finite This, yielding its value in nanoseconds.

    duration match {
      case Duration.Nanoseconds(ns) => ...
      case Duration.Top => ...
    }
    Definition Classes
    TimeLikeOps

Inherited from Serializable

Inherited from Serializable

Inherited from TimeLikeOps[Duration]

Inherited from AnyRef

Inherited from Any

Ungrouped