class
StorageUnit extends Ordered[StorageUnit]
Instance Constructors
-
new
StorageUnit(bytes: Long)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
-
def
*(scalar: Double): StorageUnit
-
-
-
-
-
def
<=(that: StorageUnit): Boolean
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
-
def
>=(that: StorageUnit): Boolean
-
final
def
asInstanceOf[T0]: T0
-
val
bytes: Long
-
def
clone(): AnyRef
-
def
compare(other: StorageUnit): Int
-
def
compareTo(that: StorageUnit): Int
-
final
def
eq(arg0: AnyRef): Boolean
-
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
ne(arg0: AnyRef): 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
Inherited from AnyRef
Inherited from Any
Representation of storage units.
If you import the com.twitter.conversions.storage implicits you can write human-readable values such as
1.gigabyte
or50.megabytes
.Note: operations can cause overflows of the Long used to represent the number of bytes.