Class/Object

scala

Byte

Related Docs: object Byte | package scala

Permalink

abstract final class Byte extends AnyVal

Byte, a 8-bit signed integer (equivalent to Java's byte primitive type) is a subtype of scala.AnyVal. Instances of Byte are not represented by an object in the underlying runtime system.

There is an implicit conversion from scala.Byte => scala.runtime.RichByte which provides useful non-primitive operations.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Byte
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def !=(x: Double): Boolean

    Permalink

    Returns true if this value is not equal to x, false otherwise.

  2. abstract def !=(x: Float): Boolean

    Permalink

    Returns true if this value is not equal to x, false otherwise.

  3. abstract def !=(x: Long): Boolean

    Permalink

    Returns true if this value is not equal to x, false otherwise.

  4. abstract def !=(x: Int): Boolean

    Permalink

    Returns true if this value is not equal to x, false otherwise.

  5. abstract def !=(x: Char): Boolean

    Permalink

    Returns true if this value is not equal to x, false otherwise.

  6. abstract def !=(x: Short): Boolean

    Permalink

    Returns true if this value is not equal to x, false otherwise.

  7. abstract def !=(x: Byte): Boolean

    Permalink

    Returns true if this value is not equal to x, false otherwise.

  8. abstract def %(x: Double): Double

    Permalink

    Returns the remainder of the division of this value by x.

  9. abstract def %(x: Float): Float

    Permalink

    Returns the remainder of the division of this value by x.

  10. abstract def %(x: Long): Long

    Permalink

    Returns the remainder of the division of this value by x.

  11. abstract def %(x: Int): Int

    Permalink

    Returns the remainder of the division of this value by x.

  12. abstract def %(x: Char): Int

    Permalink

    Returns the remainder of the division of this value by x.

  13. abstract def %(x: Short): Int

    Permalink

    Returns the remainder of the division of this value by x.

  14. abstract def %(x: Byte): Int

    Permalink

    Returns the remainder of the division of this value by x.

  15. abstract def &(x: Long): Long

    Permalink

    Returns the bitwise AND of this value and x.

    Returns the bitwise AND of this value and x.

    Example:
    1. (0xf0 & 0xaa) == 0xa0
      // in binary:   11110000
      //            & 10101010
      //              --------
      //              10100000
  16. abstract def &(x: Int): Int

    Permalink

    Returns the bitwise AND of this value and x.

    Returns the bitwise AND of this value and x.

    Example:
    1. (0xf0 & 0xaa) == 0xa0
      // in binary:   11110000
      //            & 10101010
      //              --------
      //              10100000
  17. abstract def &(x: Char): Int

    Permalink

    Returns the bitwise AND of this value and x.

    Returns the bitwise AND of this value and x.

    Example:
    1. (0xf0 & 0xaa) == 0xa0
      // in binary:   11110000
      //            & 10101010
      //              --------
      //              10100000
  18. abstract def &(x: Short): Int

    Permalink

    Returns the bitwise AND of this value and x.

    Returns the bitwise AND of this value and x.

    Example:
    1. (0xf0 & 0xaa) == 0xa0
      // in binary:   11110000
      //            & 10101010
      //              --------
      //              10100000
  19. abstract def &(x: Byte): Int

    Permalink

    Returns the bitwise AND of this value and x.

    Returns the bitwise AND of this value and x.

    Example:
    1. (0xf0 & 0xaa) == 0xa0
      // in binary:   11110000
      //            & 10101010
      //              --------
      //              10100000
  20. abstract def *(x: Double): Double

    Permalink

    Returns the product of this value and x.

  21. abstract def *(x: Float): Float

    Permalink

    Returns the product of this value and x.

  22. abstract def *(x: Long): Long

    Permalink

    Returns the product of this value and x.

  23. abstract def *(x: Int): Int

    Permalink

    Returns the product of this value and x.

  24. abstract def *(x: Char): Int

    Permalink

    Returns the product of this value and x.

  25. abstract def *(x: Short): Int

    Permalink

    Returns the product of this value and x.

  26. abstract def *(x: Byte): Int

    Permalink

    Returns the product of this value and x.

  27. abstract def +(x: Double): Double

    Permalink

    Returns the sum of this value and x.

  28. abstract def +(x: Float): Float

    Permalink

    Returns the sum of this value and x.

  29. abstract def +(x: Long): Long

    Permalink

    Returns the sum of this value and x.

  30. abstract def +(x: Int): Int

    Permalink

    Returns the sum of this value and x.

  31. abstract def +(x: Char): Int

    Permalink

    Returns the sum of this value and x.

  32. abstract def +(x: Short): Int

    Permalink

    Returns the sum of this value and x.

  33. abstract def +(x: Byte): Int

    Permalink

    Returns the sum of this value and x.

  34. abstract def +(x: String): String

    Permalink
  35. abstract def -(x: Double): Double

    Permalink

    Returns the difference of this value and x.

  36. abstract def -(x: Float): Float

    Permalink

    Returns the difference of this value and x.

  37. abstract def -(x: Long): Long

    Permalink

    Returns the difference of this value and x.

  38. abstract def -(x: Int): Int

    Permalink

    Returns the difference of this value and x.

  39. abstract def -(x: Char): Int

    Permalink

    Returns the difference of this value and x.

  40. abstract def -(x: Short): Int

    Permalink

    Returns the difference of this value and x.

  41. abstract def -(x: Byte): Int

    Permalink

    Returns the difference of this value and x.

  42. abstract def /(x: Double): Double

    Permalink

    Returns the quotient of this value and x.

  43. abstract def /(x: Float): Float

    Permalink

    Returns the quotient of this value and x.

  44. abstract def /(x: Long): Long

    Permalink

    Returns the quotient of this value and x.

  45. abstract def /(x: Int): Int

    Permalink

    Returns the quotient of this value and x.

  46. abstract def /(x: Char): Int

    Permalink

    Returns the quotient of this value and x.

  47. abstract def /(x: Short): Int

    Permalink

    Returns the quotient of this value and x.

  48. abstract def /(x: Byte): Int

    Permalink

    Returns the quotient of this value and x.

  49. abstract def <(x: Double): Boolean

    Permalink

    Returns true if this value is less than x, false otherwise.

  50. abstract def <(x: Float): Boolean

    Permalink

    Returns true if this value is less than x, false otherwise.

  51. abstract def <(x: Long): Boolean

    Permalink

    Returns true if this value is less than x, false otherwise.

  52. abstract def <(x: Int): Boolean

    Permalink

    Returns true if this value is less than x, false otherwise.

  53. abstract def <(x: Char): Boolean

    Permalink

    Returns true if this value is less than x, false otherwise.

  54. abstract def <(x: Short): Boolean

    Permalink

    Returns true if this value is less than x, false otherwise.

  55. abstract def <(x: Byte): Boolean

    Permalink

    Returns true if this value is less than x, false otherwise.

  56. abstract def <<(x: Long): Int

    Permalink

    Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.

    Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.

    Example:
    1. 6 << 3 == 48 // in binary: 0110 << 3 == 0110000
  57. abstract def <<(x: Int): Int

    Permalink

    Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.

    Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.

    Example:
    1. 6 << 3 == 48 // in binary: 0110 << 3 == 0110000
  58. abstract def <=(x: Double): Boolean

    Permalink

    Returns true if this value is less than or equal to x, false otherwise.

  59. abstract def <=(x: Float): Boolean

    Permalink

    Returns true if this value is less than or equal to x, false otherwise.

  60. abstract def <=(x: Long): Boolean

    Permalink

    Returns true if this value is less than or equal to x, false otherwise.

  61. abstract def <=(x: Int): Boolean

    Permalink

    Returns true if this value is less than or equal to x, false otherwise.

  62. abstract def <=(x: Char): Boolean

    Permalink

    Returns true if this value is less than or equal to x, false otherwise.

  63. abstract def <=(x: Short): Boolean

    Permalink

    Returns true if this value is less than or equal to x, false otherwise.

  64. abstract def <=(x: Byte): Boolean

    Permalink

    Returns true if this value is less than or equal to x, false otherwise.

  65. abstract def ==(x: Double): Boolean

    Permalink

    Returns true if this value is equal to x, false otherwise.

  66. abstract def ==(x: Float): Boolean

    Permalink

    Returns true if this value is equal to x, false otherwise.

  67. abstract def ==(x: Long): Boolean

    Permalink

    Returns true if this value is equal to x, false otherwise.

  68. abstract def ==(x: Int): Boolean

    Permalink

    Returns true if this value is equal to x, false otherwise.

  69. abstract def ==(x: Char): Boolean

    Permalink

    Returns true if this value is equal to x, false otherwise.

  70. abstract def ==(x: Short): Boolean

    Permalink

    Returns true if this value is equal to x, false otherwise.

  71. abstract def ==(x: Byte): Boolean

    Permalink

    Returns true if this value is equal to x, false otherwise.

  72. abstract def >(x: Double): Boolean

    Permalink

    Returns true if this value is greater than x, false otherwise.

  73. abstract def >(x: Float): Boolean

    Permalink

    Returns true if this value is greater than x, false otherwise.

  74. abstract def >(x: Long): Boolean

    Permalink

    Returns true if this value is greater than x, false otherwise.

  75. abstract def >(x: Int): Boolean

    Permalink

    Returns true if this value is greater than x, false otherwise.

  76. abstract def >(x: Char): Boolean

    Permalink

    Returns true if this value is greater than x, false otherwise.

  77. abstract def >(x: Short): Boolean

    Permalink

    Returns true if this value is greater than x, false otherwise.

  78. abstract def >(x: Byte): Boolean

    Permalink

    Returns true if this value is greater than x, false otherwise.

  79. abstract def >=(x: Double): Boolean

    Permalink

    Returns true if this value is greater than or equal to x, false otherwise.

  80. abstract def >=(x: Float): Boolean

    Permalink

    Returns true if this value is greater than or equal to x, false otherwise.

  81. abstract def >=(x: Long): Boolean

    Permalink

    Returns true if this value is greater than or equal to x, false otherwise.

  82. abstract def >=(x: Int): Boolean

    Permalink

    Returns true if this value is greater than or equal to x, false otherwise.

  83. abstract def >=(x: Char): Boolean

    Permalink

    Returns true if this value is greater than or equal to x, false otherwise.

  84. abstract def >=(x: Short): Boolean

    Permalink

    Returns true if this value is greater than or equal to x, false otherwise.

  85. abstract def >=(x: Byte): Boolean

    Permalink

    Returns true if this value is greater than or equal to x, false otherwise.

  86. abstract def >>(x: Long): Int

    Permalink

    Returns this value bit-shifted right by the specified number of bits, filling in the left bits with the same value as the left-most bit of this.

    Returns this value bit-shifted right by the specified number of bits, filling in the left bits with the same value as the left-most bit of this. The effect of this is to retain the sign of the value.

    Example:
    1. -21 >> 3 == -3
      // in binary: 11111111 11111111 11111111 11101011 >> 3 ==
      //            11111111 11111111 11111111 11111101
  87. abstract def >>(x: Int): Int

    Permalink

    Returns this value bit-shifted right by the specified number of bits, filling in the left bits with the same value as the left-most bit of this.

    Returns this value bit-shifted right by the specified number of bits, filling in the left bits with the same value as the left-most bit of this. The effect of this is to retain the sign of the value.

    Example:
    1. -21 >> 3 == -3
      // in binary: 11111111 11111111 11111111 11101011 >> 3 ==
      //            11111111 11111111 11111111 11111101
  88. abstract def >>>(x: Long): Int

    Permalink

    Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.

    Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.

    Examples:
    1. -21 >>> 3 == 536870909
      // in binary: 11111111 11111111 11111111 11101011 >>> 3 ==
      //            00011111 11111111 11111111 11111101
    2. ,
    3. 21 >>> 3 == 2 // in binary: 010101 >>> 3 == 010
  89. abstract def >>>(x: Int): Int

    Permalink

    Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.

    Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.

    Examples:
    1. -21 >>> 3 == 536870909
      // in binary: 11111111 11111111 11111111 11101011 >>> 3 ==
      //            00011111 11111111 11111111 11111101
    2. ,
    3. 21 >>> 3 == 2 // in binary: 010101 >>> 3 == 010
  90. abstract def ^(x: Long): Long

    Permalink

    Returns the bitwise XOR of this value and x.

    Returns the bitwise XOR of this value and x.

    Example:
    1. (0xf0 ^ 0xaa) == 0x5a
      // in binary:   11110000
      //            ^ 10101010
      //              --------
      //              01011010
  91. abstract def ^(x: Int): Int

    Permalink

    Returns the bitwise XOR of this value and x.

    Returns the bitwise XOR of this value and x.

    Example:
    1. (0xf0 ^ 0xaa) == 0x5a
      // in binary:   11110000
      //            ^ 10101010
      //              --------
      //              01011010
  92. abstract def ^(x: Char): Int

    Permalink

    Returns the bitwise XOR of this value and x.

    Returns the bitwise XOR of this value and x.

    Example:
    1. (0xf0 ^ 0xaa) == 0x5a
      // in binary:   11110000
      //            ^ 10101010
      //              --------
      //              01011010
  93. abstract def ^(x: Short): Int

    Permalink

    Returns the bitwise XOR of this value and x.

    Returns the bitwise XOR of this value and x.

    Example:
    1. (0xf0 ^ 0xaa) == 0x5a
      // in binary:   11110000
      //            ^ 10101010
      //              --------
      //              01011010
  94. abstract def ^(x: Byte): Int

    Permalink

    Returns the bitwise XOR of this value and x.

    Returns the bitwise XOR of this value and x.

    Example:
    1. (0xf0 ^ 0xaa) == 0x5a
      // in binary:   11110000
      //            ^ 10101010
      //              --------
      //              01011010
  95. abstract def toByte: Byte

    Permalink
  96. abstract def toChar: Char

    Permalink
  97. abstract def toDouble: Double

    Permalink
  98. abstract def toFloat: Float

    Permalink
  99. abstract def toInt: Int

    Permalink
  100. abstract def toLong: Long

    Permalink
  101. abstract def toShort: Short

    Permalink
  102. abstract def unary_+: Int

    Permalink

    Returns this value, unmodified.

  103. abstract def unary_-: Int

    Permalink

    Returns the negation of this value.

  104. abstract def unary_~: Int

    Permalink

    Returns the bitwise negation of this value.

    Returns the bitwise negation of this value.

    Example:
    1. ~5 == -6
      // in binary: ~00000101 ==
      //             11111010
  105. abstract def |(x: Long): Long

    Permalink

    Returns the bitwise OR of this value and x.

    Returns the bitwise OR of this value and x.

    Example:
    1. (0xf0 | 0xaa) == 0xfa
      // in binary:   11110000
      //            | 10101010
      //              --------
      //              11111010
  106. abstract def |(x: Int): Int

    Permalink

    Returns the bitwise OR of this value and x.

    Returns the bitwise OR of this value and x.

    Example:
    1. (0xf0 | 0xaa) == 0xfa
      // in binary:   11110000
      //            | 10101010
      //              --------
      //              11111010
  107. abstract def |(x: Char): Int

    Permalink

    Returns the bitwise OR of this value and x.

    Returns the bitwise OR of this value and x.

    Example:
    1. (0xf0 | 0xaa) == 0xfa
      // in binary:   11110000
      //            | 10101010
      //              --------
      //              11111010
  108. abstract def |(x: Short): Int

    Permalink

    Returns the bitwise OR of this value and x.

    Returns the bitwise OR of this value and x.

    Example:
    1. (0xf0 | 0xaa) == 0xfa
      // in binary:   11110000
      //            | 10101010
      //              --------
      //              11111010
  109. abstract def |(x: Byte): Int

    Permalink

    Returns the bitwise OR of this value and x.

    Returns the bitwise OR of this value and x.

    Example:
    1. (0xf0 | 0xaa) == 0xfa
      // in binary:   11110000
      //            | 10101010
      //              --------
      //              11111010

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  6. def getClass(): Class[Byte]

    Permalink
    Definition Classes
    ByteAnyVal → Any
  7. def hashCode(): Int

    Permalink
    Definition Classes
    Any
  8. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  9. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped