UnitPrefix

com.netflix.atlas.core.util.UnitPrefix
See theUnitPrefix companion class
object UnitPrefix

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
UnitPrefix.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def binary(value: Double): UnitPrefix

Returns an appropriate binary prefix for value. If the value is less than 1, then we fall back to using the decimal small prefixes. It is expected that binary prefixes would only get used with data greater than or equal to a byte.

Returns an appropriate binary prefix for value. If the value is less than 1, then we fall back to using the decimal small prefixes. It is expected that binary prefixes would only get used with data greater than or equal to a byte.

Attributes

def binaryRange(value: Double, digits: Double): UnitPrefix

Returns an appropriate binary prefix for value.

Returns an appropriate binary prefix for value.

Attributes

def decimal(value: Double): UnitPrefix

Returns an appropriate decimal prefix for value.

Returns an appropriate decimal prefix for value.

Attributes

def duration(value: Double): UnitPrefix

Returns an appropriate duration prefix for value.

Returns an appropriate duration prefix for value.

Attributes

def durationRange(value: Double): UnitPrefix
def forRange(value: Double, digits: Double): UnitPrefix

Returns an appropriate decimal prefix for value.

Returns an appropriate decimal prefix for value.

Attributes

def format(v: Double, fmtstr: String, scifmt: String): String