Package

com.twitter

conversions

Permalink

package conversions

Visibility
  1. Public
  2. All

Value Members

  1. object DurationOps

    Permalink

    Implicits for writing readable Durations.

    Implicits for writing readable Durations.

    Example:
    1. import com.twitter.conversions.DurationOps._
      2000.nanoseconds
      50.milliseconds
      1.second
      24.hours
      40.days
  2. object PercentOps

    Permalink

    Implicits for turning x.percent (where x is an Int or Double) into a Double scaled to where 1.0 is 100 percent.

    Implicits for turning x.percent (where x is an Int or Double) into a Double scaled to where 1.0 is 100 percent.

    Example:
    1. import com.twitter.conversions.PercentOps._
      1.percent == 0.01
      100.percent == 1.0
      99.9.percent == 0.999
      500.percent == 5.0
      -10.percent == -0.1
    Note

    Negative values, fractional values, and values greater than 100 are permitted.

  3. object StorageUnitOps

    Permalink

    Implicits for writing readable StorageUnits.

    Implicits for writing readable StorageUnits.

    Example:
    1. import com.twitter.conversions.StorageUnitOps._
      5.bytes
      1.kilobyte
      256.gigabytes
  4. object StringOps

    Permalink
  5. object ThreadOps

    Permalink

    Implicits for turning a block of code into a Runnable or Callable.

  6. object U64Ops

    Permalink

Ungrouped