DataSize

wvlet.airframe.metrics.DataSize
See theDataSize companion object
case class DataSize(value: Double, unit: DataSizeUnit) extends Comparable[DataSize]

A human-readable data size representation. This is a re-implementation of https://github.com/airlift/units/blob/master/src/main/java/io/airlift/units/DataSize.java for Scala.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Comparable[DataSize]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def compareTo(o: DataSize): Int

Attributes

Definition Classes
Comparable
def roundTo(unit: DataSizeUnit): Long
def toBytes: Long
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any
def valueOf(unit: DataSizeUnit): Double

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product