Implicits for writing readable Durations.
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.
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
Negative values, fractional values, and values greater than 100 are permitted.
Implicits for writing readable StorageUnits.
Implicits for writing readable StorageUnits.
import com.twitter.conversions.StorageUnitOps._ 5.bytes 1.kilobyte 256.gigabytes
Implicits for turning a block of code into a Runnable or Callable.
Implicits for writing readable Durations.