Long, a 64-bit signed integer (equivalent to Java'slong primitive type) is a subtype ofscala.AnyVal. Instances ofLong are not represented by an object in the underlying runtime system.
There is an implicit conversion fromscala.Long =>scala.runtime.RichLong which provides useful non-primitive operations.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returnstrue if this value is not equal to x,false otherwise.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the remainder of the division of this value byx.
Returns the bitwise AND of this value andx.
Returns the bitwise AND of this value andx.
(0xf0 & 0xaa) == 0xa0// in binary: 11110000// & 10101010// --------// 10100000Returns the bitwise AND of this value andx.
Returns the bitwise AND of this value andx.
(0xf0 & 0xaa) == 0xa0// in binary: 11110000// & 10101010// --------// 10100000Returns the bitwise AND of this value andx.
Returns the bitwise AND of this value andx.
(0xf0 & 0xaa) == 0xa0// in binary: 11110000// & 10101010// --------// 10100000Returns the bitwise AND of this value andx.
Returns the bitwise AND of this value andx.
(0xf0 & 0xaa) == 0xa0// in binary: 11110000// & 10101010// --------// 10100000Returns the bitwise AND of this value andx.
Returns the bitwise AND of this value andx.
(0xf0 & 0xaa) == 0xa0// in binary: 11110000// & 10101010// --------// 10100000Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the product of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the sum of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the difference of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returns the quotient of this value andx.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
Returnstrue if this value is less than x,false otherwise.
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.
6 << 3 == 48 // in binary: 0110 << 3 == 0110000Returns 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.
6 << 3 == 48 // in binary: 0110 << 3 == 0110000Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is less than or equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is equal to x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
Returnstrue if this value is greater than or equal to x,false otherwise.
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.
-21 >> 3 == -3// in binary: 11111111 11111111 11111111 11101011 >> 3 ==// 11111111 11111111 11111111 11111101Returns 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.
-21 >> 3 == -3// in binary: 11111111 11111111 11111111 11101011 >> 3 ==// 11111111 11111111 11111111 11111101Returns 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.
21 >>> 3 == 2 // in binary: 010101 >>> 3 == 010-21 >>> 3 == 536870909// in binary: 11111111 11111111 11111111 11101011 >>> 3 ==// 00011111 11111111 11111111 11111101Returns 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.
21 >>> 3 == 2 // in binary: 010101 >>> 3 == 010-21 >>> 3 == 536870909// in binary: 11111111 11111111 11111111 11101011 >>> 3 ==// 00011111 11111111 11111111 11111101Returns the bitwise XOR of this value andx.
Returns the bitwise XOR of this value andx.
(0xf0 ^ 0xaa) == 0x5a// in binary: 11110000// ^ 10101010// --------// 01011010Returns the bitwise XOR of this value andx.
Returns the bitwise XOR of this value andx.
(0xf0 ^ 0xaa) == 0x5a// in binary: 11110000// ^ 10101010// --------// 01011010Returns the bitwise XOR of this value andx.
Returns the bitwise XOR of this value andx.
(0xf0 ^ 0xaa) == 0x5a// in binary: 11110000// ^ 10101010// --------// 01011010Returns the bitwise XOR of this value andx.
Returns the bitwise XOR of this value andx.
(0xf0 ^ 0xaa) == 0x5a// in binary: 11110000// ^ 10101010// --------// 01011010Returns the bitwise XOR of this value andx.
Returns the bitwise XOR of this value andx.
(0xf0 ^ 0xaa) == 0x5a// in binary: 11110000// ^ 10101010// --------// 01011010Returns this value, unmodified.
Returns this value, unmodified.
Returns this value, unmodified.
Returns the negation of this value.
Returns the negation of this value.
Returns the negation of this value.
Returns the bitwise negation of this value.
Returns the bitwise negation of this value.
~5 == -6// in binary: ~00000101 ==// 11111010Returns the bitwise OR of this value andx.
Returns the bitwise OR of this value andx.
(0xf0 | 0xaa) == 0xfa// in binary: 11110000// | 10101010// --------// 11111010Returns the bitwise OR of this value andx.
Returns the bitwise OR of this value andx.
(0xf0 | 0xaa) == 0xfa// in binary: 11110000// | 10101010// --------// 11111010Returns the bitwise OR of this value andx.
Returns the bitwise OR of this value andx.
(0xf0 | 0xaa) == 0xfa// in binary: 11110000// | 10101010// --------// 11111010Returns the bitwise OR of this value andx.
Returns the bitwise OR of this value andx.
(0xf0 | 0xaa) == 0xfa// in binary: 11110000// | 10101010// --------// 11111010Returns the bitwise OR of this value andx.
Returns the bitwise OR of this value andx.
(0xf0 | 0xaa) == 0xfa// in binary: 11110000// | 10101010// --------// 11111010[Since version 2.13.0]Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`[Since version 2.13.0]Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`[Since version 2.13.0]Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`