Skip to content
This repository
Newer
Older
100644 477 lines (449 sloc) 16.414 kb
4253124e »
2011-01-24 The AnyVal types become source files instead of...
1 /* __ *\
2 ** ________ ___ / / ___ Scala API **
176aa566 »
2013-01-02 Updated copyright to 2013
3 ** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL **
4253124e »
2011-01-24 The AnyVal types become source files instead of...
4 ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
5 ** /____/\___/_/ |_/____/_/ | | **
6 ** |/ **
7 \* */
8
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
9 // DO NOT EDIT, CHANGES WILL BE LOST
10 // This auto-generated code can be modified in scala.tools.cmd.gen.
11 // Afterwards, running tools/codegen-anyvals regenerates this source file.
4253124e »
2011-01-24 The AnyVal types become source files instead of...
12
13 package scala
14
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
15 /** `Int`, a 32-bit signed integer (equivalent to Java's `int` primitive type) is a
3f58f66c »
2011-09-18 Small changes to the API documentation of the A...
16 * subtype of [[scala.AnyVal]]. Instances of `Int` are not
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
17 * represented by an object in the underlying runtime system.
305f49ce »
2011-04-01 Working on the documentation of core classes.
18 *
19 * There is an implicit conversion from [[scala.Int]] => [[scala.runtime.RichInt]]
20 * which provides useful non-primitive operations.
21 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
22 final abstract class Int private extends AnyVal {
23 def toByte: Byte
24 def toShort: Short
25 def toChar: Char
26 def toInt: Int
27 def toLong: Long
28 def toFloat: Float
29 def toDouble: Double
4253124e »
2011-01-24 The AnyVal types become source files instead of...
30
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
31 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
32 * Returns the bitwise negation of this value.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
33 * @example {{{
34 * ~5 == -6
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
35 * // in binary: ~00000101 ==
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
36 * // 11111010
37 * }}}
38 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
39 def unary_~ : Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
40 /** Returns this value, unmodified. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
41 def unary_+ : Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
42 /** Returns the negation of this value. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
43 def unary_- : Int
4253124e »
2011-01-24 The AnyVal types become source files instead of...
44
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
45 def +(x: String): String
4253124e »
2011-01-24 The AnyVal types become source files instead of...
46
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
47 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
48 * Returns this value bit-shifted left by the specified number of bits,
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
49 * filling in the new right bits with zeroes.
50 * @example {{{ 6 << 3 == 48 // in binary: 0110 << 3 == 0110000 }}}
51 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
52 def <<(x: Int): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
53 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
54 * Returns this value bit-shifted left by the specified number of bits,
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
55 * filling in the new right bits with zeroes.
56 * @example {{{ 6 << 3 == 48 // in binary: 0110 << 3 == 0110000 }}}
57 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
58 def <<(x: Long): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
59 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
60 * Returns this value bit-shifted right by the specified number of bits,
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
61 * filling the new left bits with zeroes.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
62 * @example {{{ 21 >>> 3 == 2 // in binary: 010101 >>> 3 == 010 }}}
63 * @example {{{
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
64 * -21 >>> 3 == 536870909
65 * // in binary: 11111111 11111111 11111111 11101011 >>> 3 ==
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
66 * // 00011111 11111111 11111111 11111101
67 * }}}
68 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
69 def >>>(x: Int): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
70 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
71 * Returns this value bit-shifted right by the specified number of bits,
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
72 * filling the new left bits with zeroes.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
73 * @example {{{ 21 >>> 3 == 2 // in binary: 010101 >>> 3 == 010 }}}
74 * @example {{{
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
75 * -21 >>> 3 == 536870909
76 * // in binary: 11111111 11111111 11111111 11101011 >>> 3 ==
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
77 * // 00011111 11111111 11111111 11111101
78 * }}}
79 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
80 def >>>(x: Long): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
81 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
82 * Returns this value bit-shifted left by the specified number of bits,
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
83 * filling in the right bits with the same value as the left-most bit of this.
84 * The effect of this is to retain the sign of the value.
85 * @example {{{
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
86 * -21 >> 3 == -3
87 * // in binary: 11111111 11111111 11111111 11101011 >> 3 ==
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
88 * // 11111111 11111111 11111111 11111101
89 * }}}
90 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
91 def >>(x: Int): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
92 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
93 * Returns this value bit-shifted left by the specified number of bits,
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
94 * filling in the right bits with the same value as the left-most bit of this.
95 * The effect of this is to retain the sign of the value.
96 * @example {{{
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
97 * -21 >> 3 == -3
98 * // in binary: 11111111 11111111 11111111 11101011 >> 3 ==
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
99 * // 11111111 11111111 11111111 11111101
100 * }}}
101 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
102 def >>(x: Long): Int
4253124e »
2011-01-24 The AnyVal types become source files instead of...
103
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
104 /** Returns `true` if this value is equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
105 def ==(x: Byte): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
106 /** Returns `true` if this value is equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
107 def ==(x: Short): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
108 /** Returns `true` if this value is equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
109 def ==(x: Char): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
110 /** Returns `true` if this value is equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
111 def ==(x: Int): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
112 /** Returns `true` if this value is equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
113 def ==(x: Long): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
114 /** Returns `true` if this value is equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
115 def ==(x: Float): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
116 /** Returns `true` if this value is equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
117 def ==(x: Double): Boolean
4253124e »
2011-01-24 The AnyVal types become source files instead of...
118
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
119 /** Returns `true` if this value is not equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
120 def !=(x: Byte): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
121 /** Returns `true` if this value is not equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
122 def !=(x: Short): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
123 /** Returns `true` if this value is not equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
124 def !=(x: Char): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
125 /** Returns `true` if this value is not equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
126 def !=(x: Int): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
127 /** Returns `true` if this value is not equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
128 def !=(x: Long): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
129 /** Returns `true` if this value is not equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
130 def !=(x: Float): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
131 /** Returns `true` if this value is not equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
132 def !=(x: Double): Boolean
4253124e »
2011-01-24 The AnyVal types become source files instead of...
133
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
134 /** Returns `true` if this value is less than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
135 def <(x: Byte): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
136 /** Returns `true` if this value is less than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
137 def <(x: Short): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
138 /** Returns `true` if this value is less than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
139 def <(x: Char): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
140 /** Returns `true` if this value is less than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
141 def <(x: Int): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
142 /** Returns `true` if this value is less than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
143 def <(x: Long): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
144 /** Returns `true` if this value is less than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
145 def <(x: Float): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
146 /** Returns `true` if this value is less than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
147 def <(x: Double): Boolean
4253124e »
2011-01-24 The AnyVal types become source files instead of...
148
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
149 /** Returns `true` if this value is less than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
150 def <=(x: Byte): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
151 /** Returns `true` if this value is less than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
152 def <=(x: Short): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
153 /** Returns `true` if this value is less than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
154 def <=(x: Char): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
155 /** Returns `true` if this value is less than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
156 def <=(x: Int): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
157 /** Returns `true` if this value is less than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
158 def <=(x: Long): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
159 /** Returns `true` if this value is less than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
160 def <=(x: Float): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
161 /** Returns `true` if this value is less than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
162 def <=(x: Double): Boolean
4253124e »
2011-01-24 The AnyVal types become source files instead of...
163
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
164 /** Returns `true` if this value is greater than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
165 def >(x: Byte): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
166 /** Returns `true` if this value is greater than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
167 def >(x: Short): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
168 /** Returns `true` if this value is greater than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
169 def >(x: Char): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
170 /** Returns `true` if this value is greater than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
171 def >(x: Int): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
172 /** Returns `true` if this value is greater than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
173 def >(x: Long): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
174 /** Returns `true` if this value is greater than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
175 def >(x: Float): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
176 /** Returns `true` if this value is greater than x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
177 def >(x: Double): Boolean
4253124e »
2011-01-24 The AnyVal types become source files instead of...
178
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
179 /** Returns `true` if this value is greater than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
180 def >=(x: Byte): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
181 /** Returns `true` if this value is greater than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
182 def >=(x: Short): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
183 /** Returns `true` if this value is greater than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
184 def >=(x: Char): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
185 /** Returns `true` if this value is greater than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
186 def >=(x: Int): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
187 /** Returns `true` if this value is greater than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
188 def >=(x: Long): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
189 /** Returns `true` if this value is greater than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
190 def >=(x: Float): Boolean
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
191 /** Returns `true` if this value is greater than or equal to x, `false` otherwise. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
192 def >=(x: Double): Boolean
4253124e »
2011-01-24 The AnyVal types become source files instead of...
193
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
194 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
195 * Returns the bitwise OR of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
196 * @example {{{
197 * (0xf0 | 0xaa) == 0xfa
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
198 * // in binary: 11110000
199 * // | 10101010
200 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
201 * // 11111010
202 * }}}
203 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
204 def |(x: Byte): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
205 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
206 * Returns the bitwise OR of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
207 * @example {{{
208 * (0xf0 | 0xaa) == 0xfa
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
209 * // in binary: 11110000
210 * // | 10101010
211 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
212 * // 11111010
213 * }}}
214 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
215 def |(x: Short): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
216 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
217 * Returns the bitwise OR of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
218 * @example {{{
219 * (0xf0 | 0xaa) == 0xfa
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
220 * // in binary: 11110000
221 * // | 10101010
222 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
223 * // 11111010
224 * }}}
225 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
226 def |(x: Char): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
227 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
228 * Returns the bitwise OR of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
229 * @example {{{
230 * (0xf0 | 0xaa) == 0xfa
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
231 * // in binary: 11110000
232 * // | 10101010
233 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
234 * // 11111010
235 * }}}
236 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
237 def |(x: Int): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
238 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
239 * Returns the bitwise OR of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
240 * @example {{{
241 * (0xf0 | 0xaa) == 0xfa
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
242 * // in binary: 11110000
243 * // | 10101010
244 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
245 * // 11111010
246 * }}}
247 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
248 def |(x: Long): Long
4253124e »
2011-01-24 The AnyVal types become source files instead of...
249
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
250 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
251 * Returns the bitwise AND of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
252 * @example {{{
253 * (0xf0 & 0xaa) == 0xa0
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
254 * // in binary: 11110000
255 * // & 10101010
256 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
257 * // 10100000
258 * }}}
259 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
260 def &(x: Byte): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
261 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
262 * Returns the bitwise AND of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
263 * @example {{{
264 * (0xf0 & 0xaa) == 0xa0
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
265 * // in binary: 11110000
266 * // & 10101010
267 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
268 * // 10100000
269 * }}}
270 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
271 def &(x: Short): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
272 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
273 * Returns the bitwise AND of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
274 * @example {{{
275 * (0xf0 & 0xaa) == 0xa0
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
276 * // in binary: 11110000
277 * // & 10101010
278 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
279 * // 10100000
280 * }}}
281 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
282 def &(x: Char): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
283 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
284 * Returns the bitwise AND of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
285 * @example {{{
286 * (0xf0 & 0xaa) == 0xa0
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
287 * // in binary: 11110000
288 * // & 10101010
289 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
290 * // 10100000
291 * }}}
292 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
293 def &(x: Int): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
294 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
295 * Returns the bitwise AND of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
296 * @example {{{
297 * (0xf0 & 0xaa) == 0xa0
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
298 * // in binary: 11110000
299 * // & 10101010
300 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
301 * // 10100000
302 * }}}
303 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
304 def &(x: Long): Long
4253124e »
2011-01-24 The AnyVal types become source files instead of...
305
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
306 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
307 * Returns the bitwise XOR of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
308 * @example {{{
309 * (0xf0 ^ 0xaa) == 0x5a
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
310 * // in binary: 11110000
311 * // ^ 10101010
312 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
313 * // 01011010
314 * }}}
315 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
316 def ^(x: Byte): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
317 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
318 * Returns the bitwise XOR of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
319 * @example {{{
320 * (0xf0 ^ 0xaa) == 0x5a
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
321 * // in binary: 11110000
322 * // ^ 10101010
323 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
324 * // 01011010
325 * }}}
326 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
327 def ^(x: Short): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
328 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
329 * Returns the bitwise XOR of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
330 * @example {{{
331 * (0xf0 ^ 0xaa) == 0x5a
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
332 * // in binary: 11110000
333 * // ^ 10101010
334 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
335 * // 01011010
336 * }}}
337 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
338 def ^(x: Char): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
339 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
340 * Returns the bitwise XOR of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
341 * @example {{{
342 * (0xf0 ^ 0xaa) == 0x5a
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
343 * // in binary: 11110000
344 * // ^ 10101010
345 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
346 * // 01011010
347 * }}}
348 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
349 def ^(x: Int): Int
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
350 /**
beae7735 »
2012-04-13 Improved formatting/display of documentation.
351 * Returns the bitwise XOR of this value and `x`.
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
352 * @example {{{
353 * (0xf0 ^ 0xaa) == 0x5a
2bfb2e6d »
2012-01-30 Eliminated 2500 lines of whitespace changes.
354 * // in binary: 11110000
355 * // ^ 10101010
356 * // --------
9183117c »
2011-09-02 Some great AnyVal class hierarchy documentation...
357 * // 01011010
358 * }}}
359 */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
360 def ^(x: Long): Long
4253124e »
2011-01-24 The AnyVal types become source files instead of...
361
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
362 /** Returns the sum of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
363 def +(x: Byte): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
364 /** Returns the sum of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
365 def +(x: Short): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
366 /** Returns the sum of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
367 def +(x: Char): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
368 /** Returns the sum of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
369 def +(x: Int): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
370 /** Returns the sum of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
371 def +(x: Long): Long
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
372 /** Returns the sum of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
373 def +(x: Float): Float
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
374 /** Returns the sum of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
375 def +(x: Double): Double
4253124e »
2011-01-24 The AnyVal types become source files instead of...
376
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
377 /** Returns the difference of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
378 def -(x: Byte): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
379 /** Returns the difference of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
380 def -(x: Short): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
381 /** Returns the difference of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
382 def -(x: Char): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
383 /** Returns the difference of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
384 def -(x: Int): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
385 /** Returns the difference of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
386 def -(x: Long): Long
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
387 /** Returns the difference of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
388 def -(x: Float): Float
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
389 /** Returns the difference of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
390 def -(x: Double): Double
4253124e »
2011-01-24 The AnyVal types become source files instead of...
391
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
392 /** Returns the product of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
393 def *(x: Byte): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
394 /** Returns the product of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
395 def *(x: Short): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
396 /** Returns the product of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
397 def *(x: Char): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
398 /** Returns the product of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
399 def *(x: Int): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
400 /** Returns the product of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
401 def *(x: Long): Long
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
402 /** Returns the product of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
403 def *(x: Float): Float
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
404 /** Returns the product of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
405 def *(x: Double): Double
4253124e »
2011-01-24 The AnyVal types become source files instead of...
406
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
407 /** Returns the quotient of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
408 def /(x: Byte): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
409 /** Returns the quotient of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
410 def /(x: Short): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
411 /** Returns the quotient of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
412 def /(x: Char): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
413 /** Returns the quotient of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
414 def /(x: Int): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
415 /** Returns the quotient of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
416 def /(x: Long): Long
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
417 /** Returns the quotient of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
418 def /(x: Float): Float
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
419 /** Returns the quotient of this value and `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
420 def /(x: Double): Double
4253124e »
2011-01-24 The AnyVal types become source files instead of...
421
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
422 /** Returns the remainder of the division of this value by `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
423 def %(x: Byte): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
424 /** Returns the remainder of the division of this value by `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
425 def %(x: Short): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
426 /** Returns the remainder of the division of this value by `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
427 def %(x: Char): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
428 /** Returns the remainder of the division of this value by `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
429 def %(x: Int): Int
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
430 /** Returns the remainder of the division of this value by `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
431 def %(x: Long): Long
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
432 /** Returns the remainder of the division of this value by `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
433 def %(x: Float): Float
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
434 /** Returns the remainder of the division of this value by `x`. */
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
435 def %(x: Double): Double
4253124e »
2011-01-24 The AnyVal types become source files instead of...
436
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
437 override def getClass(): Class[Int] = null
4253124e »
2011-01-24 The AnyVal types become source files instead of...
438 }
439
241c7606 »
2012-06-04 Generate abstract methods in scala.Byte and friends.
440 object Int extends AnyValCompanion {
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
441 /** The smallest value representable as a Int. */
305f49ce »
2011-04-01 Working on the documentation of core classes.
442 final val MinValue = java.lang.Integer.MIN_VALUE
443
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
444 /** The largest value representable as a Int. */
305f49ce »
2011-04-01 Working on the documentation of core classes.
445 final val MaxValue = java.lang.Integer.MAX_VALUE
446
447 /** Transform a value type into a boxed reference type.
448 *
6f47cafc »
2012-12-31 SI-6898 Document AnyVal box and unbox implemention by BoxesRunTime
449 * Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToInteger`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
450 *
305f49ce »
2011-04-01 Working on the documentation of core classes.
451 * @param x the Int to be boxed
452 * @return a java.lang.Integer offering `x` as its underlying value.
453 */
454 def box(x: Int): java.lang.Integer = java.lang.Integer.valueOf(x)
455
456 /** Transform a boxed type into a value type. Note that this
457 * method is not typesafe: it accepts any Object, but will throw
458 * an exception if the argument is not a java.lang.Integer.
459 *
6f47cafc »
2012-12-31 SI-6898 Document AnyVal box and unbox implemention by BoxesRunTime
460 * Runtime implementation determined by `scala.runtime.BoxesRunTime.unboxToInt`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
461 *
9b3852f2 »
2011-04-01 A less ad hoc infrastructure for generating Any...
462 * @param x the java.lang.Integer to be unboxed.
305f49ce »
2011-04-01 Working on the documentation of core classes.
463 * @throws ClassCastException if the argument is not a java.lang.Integer
464 * @return the Int resulting from calling intValue() on `x`
465 */
466 def unbox(x: java.lang.Object): Int = x.asInstanceOf[java.lang.Integer].intValue()
467
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
468 /** The String representation of the scala.Int companion object. */
4253124e »
2011-01-24 The AnyVal types become source files instead of...
469 override def toString = "object scala.Int"
f670e28d »
2013-07-29 SI-7624 Fix -Xlint warnings in AnyVal-related code
470 /** Language mandated coercions from Int to "wider" types. */
471 import scala.language.implicitConversions
0b3b12fb »
2012-04-14 Move primitive widening implicits to companions.
472 implicit def int2long(x: Int): Long = x.toLong
473 implicit def int2float(x: Int): Float = x.toFloat
474 implicit def int2double(x: Int): Double = x.toDouble
4253124e »
2011-01-24 The AnyVal types become source files instead of...
475 }
9b3852f2 »
2011-04-01 A less ad hoc infrastructure for generating Any...
476
Something went wrong with that request. Please try again.