Scala Library: scala.Byte
scala.Byte
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.
Abstract Value Members From scala.Byte
abstract def !=(x: Byte): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Byte)
abstract def !=(x: Char): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Byte)
abstract def !=(x: Double): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Byte)
abstract def !=(x: Float): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Byte)
abstract def !=(x: Int): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Byte)
abstract def !=(x: Long): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Byte)
abstract def !=(x: Short): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Byte)
abstract def %(x: Byte): Int
Returns the remainder of the division of this value by x
.
(defined at scala.Byte)
abstract def %(x: Char): Int
Returns the remainder of the division of this value by x
.
(defined at scala.Byte)
abstract def %(x: Double): Double
Returns the remainder of the division of this value by x
.
(defined at scala.Byte)
abstract def %(x: Float): Float
Returns the remainder of the division of this value by x
.
(defined at scala.Byte)
abstract def %(x: Int): Int
Returns the remainder of the division of this value by x
.
(defined at scala.Byte)
abstract def %(x: Long): Long
Returns the remainder of the division of this value by x
.
(defined at scala.Byte)
abstract def %(x: Short): Int
Returns the remainder of the division of this value by x
.
(defined at scala.Byte)
abstract def &(x: Byte): Int
Returns the bitwise AND of this value and x
.
Example:
(defined at scala.Byte)
abstract def &(x: Char): Int
Returns the bitwise AND of this value and x
.
Example:
(defined at scala.Byte)
abstract def &(x: Int): Int
Returns the bitwise AND of this value and x
.
Example:
(defined at scala.Byte)
abstract def &(x: Long): Long
Returns the bitwise AND of this value and x
.
Example:
(defined at scala.Byte)
abstract def &(x: Short): Int
Returns the bitwise AND of this value and x
.
Example:
(defined at scala.Byte)
abstract def *(x: Byte): Int
Returns the product of this value and x
.
(defined at scala.Byte)
abstract def *(x: Char): Int
Returns the product of this value and x
.
(defined at scala.Byte)
abstract def *(x: Double): Double
Returns the product of this value and x
.
(defined at scala.Byte)
abstract def *(x: Float): Float
Returns the product of this value and x
.
(defined at scala.Byte)
abstract def *(x: Int): Int
Returns the product of this value and x
.
(defined at scala.Byte)
abstract def *(x: Long): Long
Returns the product of this value and x
.
(defined at scala.Byte)
abstract def *(x: Short): Int
Returns the product of this value and x
.
(defined at scala.Byte)
abstract def +(x: Byte): Int
Returns the sum of this value and x
.
(defined at scala.Byte)
abstract def +(x: Char): Int
Returns the sum of this value and x
.
(defined at scala.Byte)
abstract def +(x: Double): Double
Returns the sum of this value and x
.
(defined at scala.Byte)
abstract def +(x: Float): Float
Returns the sum of this value and x
.
(defined at scala.Byte)
abstract def +(x: Int): Int
Returns the sum of this value and x
.
(defined at scala.Byte)
abstract def +(x: Long): Long
Returns the sum of this value and x
.
(defined at scala.Byte)
abstract def +(x: Short): Int
Returns the sum of this value and x
.
(defined at scala.Byte)
abstract def +(x: String): String
(defined at scala.Byte)
abstract def -(x: Byte): Int
Returns the difference of this value and x
.
(defined at scala.Byte)
abstract def -(x: Char): Int
Returns the difference of this value and x
.
(defined at scala.Byte)
abstract def -(x: Double): Double
Returns the difference of this value and x
.
(defined at scala.Byte)
abstract def -(x: Float): Float
Returns the difference of this value and x
.
(defined at scala.Byte)
abstract def -(x: Int): Int
Returns the difference of this value and x
.
(defined at scala.Byte)
abstract def -(x: Long): Long
Returns the difference of this value and x
.
(defined at scala.Byte)
abstract def -(x: Short): Int
Returns the difference of this value and x
.
(defined at scala.Byte)
abstract def /(x: Byte): Int
Returns the quotient of this value and x
.
(defined at scala.Byte)
abstract def /(x: Char): Int
Returns the quotient of this value and x
.
(defined at scala.Byte)
abstract def /(x: Double): Double
Returns the quotient of this value and x
.
(defined at scala.Byte)
abstract def /(x: Float): Float
Returns the quotient of this value and x
.
(defined at scala.Byte)
abstract def /(x: Int): Int
Returns the quotient of this value and x
.
(defined at scala.Byte)
abstract def /(x: Long): Long
Returns the quotient of this value and x
.
(defined at scala.Byte)
abstract def /(x: Short): Int
Returns the quotient of this value and x
.
(defined at scala.Byte)
abstract def <(x: Byte): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Byte)
abstract def <(x: Char): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Byte)
abstract def <(x: Double): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Byte)
abstract def <(x: Float): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Byte)
abstract def <(x: Int): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Byte)
abstract def <(x: Long): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Byte)
abstract def <(x: Short): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Byte)
abstract def <<(x: Int): Int
Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.
Example:
(defined at scala.Byte)
abstract def <<(x: Long): Int
Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.
Example:
(defined at scala.Byte)
abstract def <=(x: Byte): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def <=(x: Char): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def <=(x: Double): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def <=(x: Float): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def <=(x: Int): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def <=(x: Long): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def <=(x: Short): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def ==(x: Byte): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Byte)
abstract def ==(x: Char): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Byte)
abstract def ==(x: Double): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Byte)
abstract def ==(x: Float): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Byte)
abstract def ==(x: Int): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Byte)
abstract def ==(x: Long): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Byte)
abstract def ==(x: Short): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Byte)
abstract def >(x: Byte): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Byte)
abstract def >(x: Char): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Byte)
abstract def >(x: Double): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Byte)
abstract def >(x: Float): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Byte)
abstract def >(x: Int): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Byte)
abstract def >(x: Long): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Byte)
abstract def >(x: Short): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Byte)
abstract def >=(x: Byte): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def >=(x: Char): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def >=(x: Double): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def >=(x: Float): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def >=(x: Int): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def >=(x: Long): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def >=(x: Short): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Byte)
abstract def >>(x: Int): Int
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:
(defined at scala.Byte)
abstract def >>(x: Long): Int
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:
(defined at scala.Byte)
abstract def >>>(x: Int): Int
Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.
Examples:
(defined at scala.Byte)
abstract def >>>(x: Long): Int
Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.
Examples:
(defined at scala.Byte)
abstract def ^(x: Byte): Int
Returns the bitwise XOR of this value and x
.
Example:
(defined at scala.Byte)
abstract def ^(x: Char): Int
Returns the bitwise XOR of this value and x
.
Example:
(defined at scala.Byte)
abstract def ^(x: Int): Int
Returns the bitwise XOR of this value and x
.
Example:
(defined at scala.Byte)
abstract def ^(x: Long): Long
Returns the bitwise XOR of this value and x
.
Example:
(defined at scala.Byte)
abstract def ^(x: Short): Int
Returns the bitwise XOR of this value and x
.
Example:
(defined at scala.Byte)
abstract def |(x: Byte): Int
Returns the bitwise OR of this value and x
.
Example:
(defined at scala.Byte)
abstract def |(x: Char): Int
Returns the bitwise OR of this value and x
.
Example:
(defined at scala.Byte)
abstract def |(x: Int): Int
Returns the bitwise OR of this value and x
.
Example:
(defined at scala.Byte)
abstract def |(x: Long): Long
Returns the bitwise OR of this value and x
.
Example:
(defined at scala.Byte)
abstract def |(x: Short): Int
Returns the bitwise OR of this value and x
.
Example:
(defined at scala.Byte)
Concrete Value Members From scala.Byte
abstract def toByte: Byte
(defined at scala.Byte)
Concrete Value Members From Implicit scala.LowPriorityImplicits.byteWrapper
def compare(y: Byte): Int
Result of comparing this
with operand that
.
Implement this method to determine how instances of A will be sorted.
Returns x
where:
x < 0
whenthis < that
x == 0
whenthis == that
-
x > 0
whenthis > that
- Implicit information
- This member is added by an implicit conversion from Byte to RichByte performed by method byteWrapper in scala.LowPriorityImplicits.
- Definition Classes
- OrderedProxy → Ordered
(added by implicit convertion: scala.LowPriorityImplicits.byteWrapper)
def compareTo(that: Byte): Int
Result of comparing this
with operand that
.
- Implicit information
- This member is added by an implicit conversion from Byte to RichByte performed by method byteWrapper in scala.LowPriorityImplicits.
- Definition Classes
- Ordered → Comparable
(added by implicit convertion: scala.LowPriorityImplicits.byteWrapper)
def max(that: Byte): Byte
Returns this
if this > that
or that
otherwise.
- Implicit information
- This member is added by an implicit conversion from Byte to RichByte performed by method byteWrapper in scala.LowPriorityImplicits.
- Definition Classes
- RichByte → ScalaNumberProxy
(added by implicit convertion: scala.LowPriorityImplicits.byteWrapper)
def min(that: Byte): Byte
Returns this
if this < that
or that
otherwise.
- Implicit information
- This member is added by an implicit conversion from Byte to RichByte performed by method byteWrapper in scala.LowPriorityImplicits.
- Definition Classes
- RichByte → ScalaNumberProxy
(added by implicit convertion: scala.LowPriorityImplicits.byteWrapper)
Concrete Value Members From Implicit scala.Predef.byte2Byte
def compareTo(arg0: java.lang.Byte): Int
- Implicit information
- This member is added by an implicit conversion from Byte to java.lang.Byte performed by method byte2Byte in scala.Predef.
- Definition Classes
- Byte → Comparable (added by implicit convertion: scala.Predef.byte2Byte)
Full Source:
Interested in Scala?
I send out weekly, personalized emails with articles and conference talks.
Subscribe now.