final class ByteSize extends AnyVal with Any.Datum.Long.Number[Util.ByteSize]

ByteSize is a Long wrapper to indicate something like File size or memory allocation in bytes

ByteSize is not referenced much in scalqa itself, but proved to be usefull in applications

Ordering
  1. Alphabetic
Inherited
  1. ByteSize
  2. Any.Datum.Long.Number
  3. Any.Datum.Long.Number._use
  4. Any.Datum.Z.Number.Use
  5. Any.Datum.Long.Number._convert
  6. Any.Datum.Z.Number.Convert
  7. Any.Datum.Long.Number._compare
  8. Any.Datum.Z.Number.Compare
  9. Any.Datum.Long.Computable
  10. Any.Datum.Z.Computable
  11. Any.Datum.Long.Ordered
  12. Any.Datum.Z.Ordered
  13. Any.Datum.Long
  14. Custom.Number.Like
  15. Any.Datum
  16. Any.Wrap
  17. scala.AnyVal
  18. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Constructor

  1. new ByteSize(real: Long)
    Definition Classes
    ByteSize

Constant

  1. val real: Long
    Attributes
    protected
    Definition Classes
    ByteSize_convert_compare_Trait_Trait

Method

  1. def abs: ByteSize

    Absolute value

    Absolute value

    Returns absolute value of this

    Definition Classes
    _Trait → Computable
  2. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  3. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  4. def make(v: Long): ByteSize
    Attributes
    protected
    Definition Classes
    _Trait_Trait
  5. def max(v: ByteSize): ByteSize

    Maximum value

    Maximum value

    Returns maximum of this and provided value

    Definition Classes
    _Trait → Ordered
  6. def min(v: ByteSize): ByteSize

    Minimum value

    Minimum value

    Returns minimum of this and provided value

    Definition Classes
    _Trait → Ordered
  7. def realNumber: Long
    Attributes
    protected
    Definition Classes
    _TraitLike
  8. def round(scale: Int, r: Custom.Rounding = \/): ByteSize

    Round value

    Round value

    Negative scale specifies number of rounding digits before the period

    Positive scale specifies number of rounding digits after the period

    Note. Positive scale does not make sense if this is integral value

    By default the rounding is done "half up'

    Definition Classes
    _use → Use
  9. def setup: ByteSize.type
    Attributes
    protected
    Definition Classes
    ByteSize_Trait_Trait_Trait_Trait
  10. def signum: Int

    Sign function

    Sign function

    Returns -1 if this < 0

    Returns 0 if this == 0

    Returns 1 if this > 0 *

    Definition Classes
    _use → Use
  11. def toBrief: String
    Definition Classes
    ByteSize
  12. def toByte: Byte

    Convert to Byte

    Convert to Byte

    Returns the value of this as Byte

    Definition Classes
    _convert → Convert
  13. def toDouble: Double

    Convert to Double

    Convert to Double

    Returns the value of this as Double

    Definition Classes
    _convert → Convert
  14. def toFloat: Float
    Definition Classes
    _convert → Convert
  15. def toInt: Int

    Convert to Int

    Convert to Int

    Returns the value of this as Int

    Definition Classes
    _convert → Convert
  16. def toLong: Long

    Convert to Long

    Convert to Long

    Returns the value of this as Long

    Definition Classes
    _convert → Convert
  17. def toNumber: Long

    Convert to Number

    Convert to Number

    Returns the value of this as java.lang.Number

    Definition Classes
    _convert → Convert
  18. def toShort: Short

    Convert to Short

    Convert to Short

    Returns the value of this as Short

    Definition Classes
    _convert → Convert
  19. def toString(): String
    Definition Classes
    ByteSize → Any

Operator

  1. def unary_-: ByteSize

    Negate

    Negate

    Returns a new value, which is negated this

    Definition Classes
    _use → Use
  2. def !=(v: Double): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  3. def !=(v: Float): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  4. def !=(v: Long): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  5. def !=(v: Int): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  6. def !=(v: Short): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  7. def !=(v: Byte): Boolean

    Not equals test

    Not equals test

    Returns true if this is not equal to v, false otherwise

    Definition Classes
    _compare → Compare
  8. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  9. final def ##(): Int
    Definition Classes
    Any
  10. def %(v: Long): ByteSize

    Remainder

    Remainder

    Returns a new value, which is remainder of this divided by v

    Definition Classes
    _use
  11. def %(v: Int): ByteSize

    Remainder

    Remainder

    Returns a new value, which is remainder of this divided by v

    Definition Classes
    _use
  12. def %(v: ByteSize): ByteSize

    Remainder

    Remainder

    Returns a new value, which is remainder of this divided by v

    Definition Classes
    _use → Use
  13. def %@(v: Double): Util.Percent
    Definition Classes
    _use
  14. def %@(v: ByteSize): Util.Percent

    Percent At

    Percent At

    Returns percentage of this compared to v

    Definition Classes
    _Trait → Computable
  15. def *(v: ByteSize): ByteSize

    Multiply by

    Multiply by

    Returns a new value, which is this value multiplied by v

    Definition Classes
    _use → Use
  16. def *(v: Long): ByteSize

    Multiply by

    Multiply by

    Returns a new value, which is this value multiplied by v

    Definition Classes
    _Trait
  17. def *(v: Int): ByteSize

    Multiply by

    Multiply by

    Returns a new value, which is this value multiplied by v

    Definition Classes
    _Trait
  18. def +(v: Long): ByteSize

    Add value

    Add value

    Returns a new value, which is an addition of this and v

    Definition Classes
    _use
  19. def +(v: Int): ByteSize

    Add value

    Add value

    Returns a new value, which is an addition of this and v

    Definition Classes
    _use
  20. def +(p: Percent): ByteSize

    Add percent

    Add percent

    Returns a new value, which is this with added percent of this

    Definition Classes
    _Trait → Computable
  21. def +(v: ByteSize, V: \/ = \/): ByteSize

    Add value

    Add value

    Returns a new value, which is an addition of this and v

    Definition Classes
    _Trait → Computable
  22. def -(v: Long): ByteSize

    Subtract value

    Subtract value

    Returns a new value, which is a subtraction of v from this

    Definition Classes
    _use
  23. def -(v: Int): ByteSize

    Subtract value

    Subtract value

    Returns a new value, which is a subtraction of v from this

    Definition Classes
    _use
  24. def -(p: Percent): ByteSize

    Subtract percent

    Subtract percent

    Returns a new value, which is this with subtracted percent of this

    Definition Classes
    _Trait → Computable
  25. def -(v: ByteSize, V: \/ = \/): ByteSize

    Subtract value

    Subtract value

    Returns a new value, which is a subtraction of v from this

    Definition Classes
    _Trait → Computable
  26. def /(v: ByteSize): ByteSize

    Divide by

    Divide by

    Returns a new value, which is this value divided by v

    Definition Classes
    _use → Use
  27. def /(v: Long): ByteSize

    Divide by

    Divide by

    Returns a new value, which is this value divided by v

    Definition Classes
    _Trait
  28. def /(v: Int): ByteSize

    Divide by

    Divide by

    Returns a new value, which is this value divided by v

    Definition Classes
    _Trait
  29. def <(v: Double): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  30. def <(v: Float): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  31. def <(v: Long): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  32. def <(v: Int): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  33. def <(v: Short): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  34. def <(v: Byte): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _compare → Compare
  35. def <(v: ByteSize): Boolean

    Is less test

    Is less test

    Returns true if this is less than v, false otherwise

    Definition Classes
    _Trait → Ordered
  36. def <=(v: Double): Boolean

    Is less or equal test

    Is less or equal test

    Returns true if this is less or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  37. def <=(v: Float): Boolean

    Is less or equal test

    Is less or equal test

    Returns true if this is less or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  38. def <=(v: Long): Boolean

    Is less or equal test

    Is less or equal test

    Returns true if this is less or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  39. def <=(v: Int): Boolean

    Is less or equal test

    Is less or equal test

    Returns true if this is less or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  40. def <=(v: Short): Boolean

    Is less or equal test

    Is less or equal test

    Returns true if this is less or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  41. def <=(v: Byte): Boolean

    Is less or equal test

    Is less or equal test

    Returns true if this is less or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  42. def <=(v: ByteSize): Boolean

    Is less or equal test

    Is less or equal test

    Returns true if this is less or equal to v, false otherwise

    Definition Classes
    _Trait → Ordered
  43. def ==(v: Double): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  44. def ==(v: Float): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  45. def ==(v: Long): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  46. def ==(v: Int): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  47. def ==(v: Short): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  48. def ==(v: Byte): Boolean

    Equals test

    Equals test

    Returns true if this is equal to v, false otherwise

    Definition Classes
    _compare → Compare
  49. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  50. def >(v: Double): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  51. def >(v: Float): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  52. def >(v: Long): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  53. def >(v: Int): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  54. def >(v: Short): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  55. def >(v: Byte): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _compare → Compare
  56. def >(v: ByteSize): Boolean

    Is greater test

    Is greater test

    Returns true if this is greater than v, false otherwise

    Definition Classes
    _Trait → Ordered
  57. def >=(v: Double): Boolean

    Is greater or equal test

    Is greater or equal test

    Returns true if this is greater or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  58. def >=(v: Float): Boolean

    Is greater or equal test

    Is greater or equal test

    Returns true if this is greater or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  59. def >=(v: Long): Boolean

    Is greater or equal test

    Is greater or equal test

    Returns true if this is greater or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  60. def >=(v: Int): Boolean

    Is greater or equal test

    Is greater or equal test

    Returns true if this is greater or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  61. def >=(v: Short): Boolean

    Is greater or equal test

    Is greater or equal test

    Returns true if this is greater or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  62. def >=(v: Byte): Boolean

    Is greater or equal test

    Is greater or equal test

    Returns true if this is greater or equal to v, false otherwise

    Definition Classes
    _compare → Compare
  63. def >=(v: ByteSize): Boolean

    Is greater or equal test

    Is greater or equal test

    Returns true if this is greater or equal to v, false otherwise

    Definition Classes
    _Trait → Ordered