Class/Object

com.twitter.util

StorageUnit

Related Docs: object StorageUnit | package util

Permalink

class StorageUnit extends Ordered[StorageUnit]

Representation of storage units.

If you import the com.twitter.conversions.storage implicits you can write human-readable values such as 1.gigabyte or 50.megabytes.

Note: operations can cause overflows of the Long used to represent the number of bytes.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StorageUnit
  2. Ordered
  3. Comparable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StorageUnit(bytes: Long)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(scalar: Long): StorageUnit

    Permalink
  4. def *(scalar: Double): StorageUnit

    Permalink
  5. def +(that: StorageUnit): StorageUnit

    Permalink
  6. def -(that: StorageUnit): StorageUnit

    Permalink
  7. def /(scalar: Long): StorageUnit

    Permalink
  8. def <(that: StorageUnit): Boolean

    Permalink
    Definition Classes
    Ordered
  9. def <=(that: StorageUnit): Boolean

    Permalink
    Definition Classes
    Ordered
  10. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def >(that: StorageUnit): Boolean

    Permalink
    Definition Classes
    Ordered
  12. def >=(that: StorageUnit): Boolean

    Permalink
    Definition Classes
    Ordered
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. val bytes: Long

    Permalink
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def compare(other: StorageUnit): Int

    Permalink
    Definition Classes
    StorageUnit → Ordered
  17. def compareTo(that: StorageUnit): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    StorageUnit → AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    StorageUnit → AnyRef → Any
  23. def inBytes: Long

    Permalink
  24. def inExabytes: Long

    Permalink
  25. def inGigabytes: Long

    Permalink
  26. def inKilobytes: Long

    Permalink
  27. def inMegabytes: Long

    Permalink
  28. def inPetabytes: Long

    Permalink
  29. def inTerabytes: Long

    Permalink
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def max(other: StorageUnit): StorageUnit

    Permalink
  32. def min(other: StorageUnit): StorageUnit

    Permalink
  33. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toHuman(): String

    Permalink
  38. def toString(): String

    Permalink
    Definition Classes
    StorageUnit → AnyRef → Any
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Ordered[StorageUnit]

Inherited from Comparable[StorageUnit]

Inherited from AnyRef

Inherited from Any

Ungrouped