com.twitter.util

StorageUnit

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.

Linear Supertypes
Ordered[StorageUnit], Comparable[StorageUnit], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StorageUnit
  2. Ordered
  3. Comparable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StorageUnit(bytes: Long)

Value Members

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

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

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

  4. def *(scalar: Double): StorageUnit

  5. def +(that: StorageUnit): StorageUnit

  6. def -(that: StorageUnit): StorageUnit

  7. def /(scalar: Long): StorageUnit

  8. def <(that: StorageUnit): Boolean

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

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

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

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

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

    Definition Classes
    Any
  14. val bytes: Long

  15. def clone(): AnyRef

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

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

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

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

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

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

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

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

  24. def inExabytes: Long

  25. def inGigabytes: Long

  26. def inKilobytes: Long

  27. def inMegabytes: Long

  28. def inPetabytes: Long

  29. def inTerabytes: Long

  30. final def isInstanceOf[T0]: Boolean

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

  32. def min(other: StorageUnit): StorageUnit

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

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

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

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

    Definition Classes
    AnyRef
  37. def toHuman(): String

  38. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Ordered[StorageUnit]

Inherited from Comparable[StorageUnit]

Inherited from AnyRef

Inherited from Any

Ungrouped