com.twitter.util

Duration

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
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. 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
  7. object Finite

    An extractor for finite TimeLikes; eg.

  8. val NanosPerDay: Long

  9. val NanosPerHour: Long

  10. val NanosPerMicrosecond: Long

  11. val NanosPerMillisecond: Long

  12. val NanosPerMinute: Long

  13. val NanosPerSecond: Long

  14. object Nanoseconds

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

  15. 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
  16. val Undefined: Duration

    An undefined value: behaves like Double.NaN

    An undefined value: behaves like Double.NaN

    Definition Classes
    DurationTimeLikeOps
  17. val Zero: Duration

    The zero value

    The zero value

    Definition Classes
    DurationTimeLikeOps
  18. def apply(value: Long, unit: TimeUnit): Duration

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

  19. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  20. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. 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
  25. def fromMicroseconds(micros: Long): Duration

    Definition Classes
    DurationTimeLikeOps
  26. def fromMilliseconds(millis: Long): Duration

    Definition Classes
    DurationTimeLikeOps
  27. 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
  28. def fromSeconds(seconds: Int): Duration

    Definition Classes
    DurationTimeLikeOps
  29. 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.

  30. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  31. def hashCode(): Int

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

    Definition Classes
    Any
  33. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  36. 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.

  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from TimeLikeOps[Duration]

Inherited from AnyRef

Inherited from Any

Ungrouped