class
StorageUnit extends Ordered[StorageUnit]
Instance Constructors
-
new
StorageUnit(bytes: Long)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
-
-
-
-
-
-
-
final
def
==(arg0: Any): Boolean
-
-
-
final
def
asInstanceOf[T0]: T0
-
val
bytes: Long
-
def
clone(): AnyRef
-
-
-
-
-
def
equals(other: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
inBytes: Long
-
def
inExabytes: Long
-
def
inGigabytes: Long
-
def
inKilobytes: Long
-
def
inMegabytes: Long
-
def
inPetabytes: Long
-
def
inTerabytes: Long
-
final
def
isInstanceOf[T0]: Boolean
-
-
-
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
-
-
def
toHuman(): String
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Representation of storage units.
Use either
StorageUnit.fromX
or implicit conversions fromLong
andInt
to construct instances.Operations can cause overflows of the
,Long
used to represent the number of bytes.While all the methods in this abstraction are prefixed according to the International System of Units (kilo-, mega-, etc), they actually operate on the 1024 scale (not 1000).