@sitevision/api 2023.2.2-beta.1 → 2023.2.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/package.json +1 -1
  2. package/types/java/io/File/index.d.ts +0 -120
  3. package/types/java/io/File/index.js +0 -2
  4. package/types/java/lang/Boolean/index.d.ts +0 -123
  5. package/types/java/lang/Boolean/index.js +1 -8
  6. package/types/java/lang/Class/index.d.ts +2 -93
  7. package/types/java/lang/Class/index.js +0 -1
  8. package/types/java/lang/ClassLoader/index.d.ts +0 -91
  9. package/types/java/lang/ClassLoader/index.js +0 -5
  10. package/types/java/lang/Double/index.d.ts +0 -541
  11. package/types/java/lang/Double/index.js +2 -13
  12. package/types/java/lang/Enum/index.d.ts +0 -23
  13. package/types/java/lang/Enum/index.js +0 -1
  14. package/types/java/lang/Float/index.d.ts +0 -494
  15. package/types/java/lang/Float/index.js +2 -13
  16. package/types/java/lang/Integer/index.d.ts +0 -780
  17. package/types/java/lang/Integer/index.js +2 -29
  18. package/types/java/lang/Long/index.d.ts +0 -788
  19. package/types/java/lang/Long/index.js +2 -28
  20. package/types/java/lang/Package/index.d.ts +0 -28
  21. package/types/java/lang/Package/index.js +0 -2
  22. package/types/java/lang/String/index.d.ts +0 -193
  23. package/types/java/lang/String/index.js +0 -4
  24. package/types/java/lang/reflect/AccessibleObject/index.d.ts +0 -25
  25. package/types/java/math/BigDecimal/index.d.ts +1 -40
  26. package/types/java/math/BigDecimal/index.js +0 -1
  27. package/types/java/math/BigInteger/index.d.ts +0 -25
  28. package/types/java/math/BigInteger/index.js +0 -2
  29. package/types/java/net/InetAddress/index.d.ts +0 -134
  30. package/types/java/net/InetAddress/index.js +1 -6
  31. package/types/java/net/NetworkInterface/index.d.ts +0 -50
  32. package/types/java/net/NetworkInterface/index.js +0 -4
  33. package/types/java/net/URI/index.d.ts +0 -22
  34. package/types/java/net/URI/index.js +0 -1
  35. package/types/java/net/URL/index.d.ts +0 -23
  36. package/types/java/net/URL/index.js +1 -2
  37. package/types/java/net/URLConnection/index.d.ts +0 -125
  38. package/types/java/net/URLConnection/index.js +1 -10
  39. package/types/java/nio/channels/AsynchronousFileChannel/index.d.ts +0 -136
  40. package/types/java/nio/channels/AsynchronousFileChannel/index.js +0 -1
  41. package/types/java/nio/channels/FileChannel/index.d.ts +0 -128
  42. package/types/java/nio/channels/FileChannel/index.js +0 -1
  43. package/types/java/nio/charset/Charset/index.d.ts +1 -58
  44. package/types/java/nio/charset/Charset/index.js +0 -4
  45. package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +0 -12
  46. package/types/java/nio/file/spi/FileSystemProvider/index.js +0 -1
  47. package/types/java/text/DateFormat/index.d.ts +0 -130
  48. package/types/java/text/DateFormat/index.js +0 -5
  49. package/types/java/text/DateFormatSymbols/index.d.ts +0 -45
  50. package/types/java/text/DateFormatSymbols/index.js +0 -2
  51. package/types/java/text/NumberFormat/index.d.ts +0 -123
  52. package/types/java/text/NumberFormat/index.js +0 -6
  53. package/types/java/time/Clock/index.d.ts +1 -162
  54. package/types/java/time/Clock/index.js +0 -8
  55. package/types/java/time/Duration/index.d.ts +3 -193
  56. package/types/java/time/Duration/index.js +0 -10
  57. package/types/java/time/Instant/index.d.ts +0 -101
  58. package/types/java/time/Instant/index.js +0 -5
  59. package/types/java/time/LocalDate/index.d.ts +4 -134
  60. package/types/java/time/LocalDate/index.js +0 -6
  61. package/types/java/time/LocalDateTime/index.d.ts +7 -285
  62. package/types/java/time/LocalDateTime/index.js +0 -6
  63. package/types/java/time/LocalTime/index.d.ts +2 -146
  64. package/types/java/time/LocalTime/index.js +0 -6
  65. package/types/java/time/OffsetDateTime/index.d.ts +7 -177
  66. package/types/java/time/OffsetDateTime/index.js +0 -6
  67. package/types/java/time/OffsetTime/index.d.ts +3 -141
  68. package/types/java/time/OffsetTime/index.js +0 -5
  69. package/types/java/time/Period/index.d.ts +1 -135
  70. package/types/java/time/Period/index.js +0 -8
  71. package/types/java/time/ZoneId/index.d.ts +1 -121
  72. package/types/java/time/ZoneId/index.js +0 -5
  73. package/types/java/time/ZoneOffset/index.d.ts +1 -104
  74. package/types/java/time/ZoneOffset/index.js +0 -6
  75. package/types/java/time/ZonedDateTime/index.d.ts +6 -284
  76. package/types/java/time/ZonedDateTime/index.js +0 -7
  77. package/types/java/time/format/DateTimeFormatter/index.d.ts +2 -215
  78. package/types/java/time/format/DateTimeFormatter/index.js +0 -6
  79. package/types/java/time/format/DecimalStyle/index.d.ts +0 -34
  80. package/types/java/time/format/DecimalStyle/index.js +0 -3
  81. package/types/java/time/temporal/ValueRange/index.d.ts +0 -43
  82. package/types/java/time/temporal/ValueRange/index.js +0 -1
  83. package/types/java/time/zone/ZoneOffsetTransition/index.d.ts +2 -19
  84. package/types/java/time/zone/ZoneOffsetTransition/index.js +0 -1
  85. package/types/java/time/zone/ZoneRules/index.d.ts +2 -28
  86. package/types/java/time/zone/ZoneRules/index.js +0 -1
  87. package/types/java/util/Calendar/index.d.ts +2 -67
  88. package/types/java/util/Calendar/index.js +0 -3
  89. package/types/java/util/Comparator/index.d.ts +16 -16
  90. package/types/java/util/Currency/index.d.ts +0 -38
  91. package/types/java/util/Currency/index.js +0 -2
  92. package/types/java/util/Date/index.d.ts +0 -160
  93. package/types/java/util/Date/index.js +0 -3
  94. package/types/java/util/Locale/index.d.ts +0 -344
  95. package/types/java/util/Locale/index.js +1 -11
  96. package/types/java/util/Optional/index.d.ts +0 -27
  97. package/types/java/util/Optional/index.js +0 -3
  98. package/types/java/util/OptionalDouble/index.d.ts +0 -15
  99. package/types/java/util/OptionalDouble/index.js +0 -2
  100. package/types/java/util/OptionalInt/index.d.ts +0 -15
  101. package/types/java/util/OptionalInt/index.js +0 -2
  102. package/types/java/util/OptionalLong/index.d.ts +0 -15
  103. package/types/java/util/OptionalLong/index.js +0 -2
  104. package/types/java/util/TimeZone/index.d.ts +0 -65
  105. package/types/java/util/TimeZone/index.js +0 -4
  106. package/types/javax/jcr/PropertyType/index.d.ts +2 -18
  107. package/types/javax/jcr/PropertyType/index.js +1 -4
  108. package/types/javax/jcr/version/OnParentVersionAction/index.d.ts +2 -19
  109. package/types/javax/jcr/version/OnParentVersionAction/index.js +1 -4
  110. package/types/java/net/ContentHandler/index.d.ts +0 -70
  111. package/types/java/net/ContentHandler/index.js +0 -10
  112. package/types/java/net/ContentHandlerFactory/index.d.ts +0 -26
  113. package/types/java/net/ContentHandlerFactory/index.js +0 -10
  114. package/types/java/net/FileNameMap/index.d.ts +0 -16
  115. package/types/java/net/FileNameMap/index.js +0 -10
  116. package/types/java/net/URLStreamHandler/index.d.ts +0 -199
  117. package/types/java/net/URLStreamHandler/index.js +0 -19
  118. package/types/java/net/URLStreamHandlerFactory/index.d.ts +0 -24
  119. package/types/java/net/URLStreamHandlerFactory/index.js +0 -10
  120. package/types/java/time/format/FormatStyle/index.d.ts +0 -14
  121. package/types/java/time/format/FormatStyle/index.js +0 -13
  122. package/types/java/util/Locale.Category/index.d.ts +0 -12
  123. package/types/java/util/Locale.Category/index.js +0 -11
  124. package/types/java/util/Locale.FilteringMode/index.d.ts +0 -97
  125. package/types/java/util/Locale.FilteringMode/index.js +0 -14
@@ -1,5 +1,4 @@
1
1
  import type { String } from "../String";
2
-
3
2
  import type { Object } from "../Object";
4
3
 
5
4
  import type { Number } from "../Number";
@@ -29,392 +28,6 @@ import type { Class } from "../Class";
29
28
  */
30
29
  export type Integer = Number &
31
30
  Comparable & {
32
- /**
33
- * Returns a string representation of the first argument in the
34
- * radix specified by the second argument.
35
- *
36
- * <p>If the radix is smaller than {@code Character.MIN_RADIX}
37
- * or larger than {@code Character.MAX_RADIX}, then the radix
38
- * {@code 10} is used instead.
39
- *
40
- * <p>If the first argument is negative, the first element of the
41
- * result is the ASCII minus character {@code '-'}
42
- * ({@code '\u002D'}). If the first argument is not
43
- * negative, no sign character appears in the result.
44
- *
45
- * <p>The remaining characters of the result represent the magnitude
46
- * of the first argument. If the magnitude is zero, it is
47
- * represented by a single zero character {@code '0'}
48
- * ({@code '\u0030'}); otherwise, the first character of
49
- * the representation of the magnitude will not be the zero
50
- * character. The following ASCII characters are used as digits:
51
- *
52
- * <blockquote>
53
- * {@code 0123456789abcdefghijklmnopqrstuvwxyz}
54
- * </blockquote>
55
- *
56
- * These are {@code '\u0030'} through
57
- * {@code '\u0039'} and {@code '\u0061'} through
58
- * {@code '\u007A'}. If {@code radix} is
59
- * <var>N</var>, then the first <var>N</var> of these characters
60
- * are used as radix-<var>N</var> digits in the order shown. Thus,
61
- * the digits for hexadecimal (radix 16) are
62
- * {@code 0123456789abcdef}. If uppercase letters are
63
- * desired, the {@link java.lang.String#toUpperCase()} method may
64
- * be called on the result:
65
- *
66
- * <blockquote>
67
- * {@code Integer.toString(n, 16).toUpperCase()}
68
- * </blockquote>
69
- * @param i an integer to be converted to a string.
70
- * @param radix the radix to use in the string representation.
71
- * @return a string representation of the argument in the specified radix.
72
- * @see java.lang.Character#MAX_RADIX
73
- * @see java.lang.Character#MIN_RADIX
74
- */
75
- toString(i: number, radix: number): string;
76
-
77
- /**
78
- * Returns a string representation of the first argument as an
79
- * unsigned integer value in the radix specified by the second
80
- * argument.
81
- *
82
- * <p>If the radix is smaller than {@code Character.MIN_RADIX}
83
- * or larger than {@code Character.MAX_RADIX}, then the radix
84
- * {@code 10} is used instead.
85
- *
86
- * <p>Note that since the first argument is treated as an unsigned
87
- * value, no leading sign character is printed.
88
- *
89
- * <p>If the magnitude is zero, it is represented by a single zero
90
- * character {@code '0'} ({@code '\u0030'}); otherwise,
91
- * the first character of the representation of the magnitude will
92
- * not be the zero character.
93
- *
94
- * <p>The behavior of radixes and the characters used as digits
95
- * are the same as {@link #toString(int, int) toString}.
96
- * @param i an integer to be converted to an unsigned string.
97
- * @param radix the radix to use in the string representation.
98
- * @return an unsigned string representation of the argument in the specified radix.
99
- * @see #toString(int, int)
100
- * @since 1.8
101
- */
102
- toUnsignedString(i: number, radix: number): string;
103
-
104
- /**
105
- * Returns a string representation of the integer argument as an
106
- * unsigned integer in base&nbsp;16.
107
- *
108
- * <p>The unsigned integer value is the argument plus 2<sup>32</sup>
109
- * if the argument is negative; otherwise, it is equal to the
110
- * argument. This value is converted to a string of ASCII digits
111
- * in hexadecimal (base&nbsp;16) with no extra leading
112
- * {@code 0}s.
113
- *
114
- * <p>The value of the argument can be recovered from the returned
115
- * string {@code s} by calling {@link
116
- * Integer#parseUnsignedInt(String, int)
117
- * Integer.parseUnsignedInt(s, 16)}.
118
- *
119
- * <p>If the unsigned magnitude is zero, it is represented by a
120
- * single zero character {@code '0'} ({@code '\u0030'});
121
- * otherwise, the first character of the representation of the
122
- * unsigned magnitude will not be the zero character. The
123
- * following characters are used as hexadecimal digits:
124
- *
125
- * <blockquote>
126
- * {@code 0123456789abcdef}
127
- * </blockquote>
128
- *
129
- * These are the characters {@code '\u0030'} through
130
- * {@code '\u0039'} and {@code '\u0061'} through
131
- * {@code '\u0066'}. If uppercase letters are
132
- * desired, the {@link java.lang.String#toUpperCase()} method may
133
- * be called on the result:
134
- *
135
- * <blockquote>
136
- * {@code Integer.toHexString(n).toUpperCase()}
137
- * </blockquote>
138
- * @param i an integer to be converted to a string.
139
- * @return the string representation of the unsigned integer value&#xA; represented by the argument in hexadecimal (base&nbsp;16).
140
- * @see #parseUnsignedInt(String, int)
141
- * @see #toUnsignedString(int, int)
142
- * @since JDK1.0.2
143
- */
144
- toHexString(i: number): string;
145
-
146
- /**
147
- * Returns a string representation of the integer argument as an
148
- * unsigned integer in base&nbsp;8.
149
- *
150
- * <p>The unsigned integer value is the argument plus 2<sup>32</sup>
151
- * if the argument is negative; otherwise, it is equal to the
152
- * argument. This value is converted to a string of ASCII digits
153
- * in octal (base&nbsp;8) with no extra leading {@code 0}s.
154
- *
155
- * <p>The value of the argument can be recovered from the returned
156
- * string {@code s} by calling {@link
157
- * Integer#parseUnsignedInt(String, int)
158
- * Integer.parseUnsignedInt(s, 8)}.
159
- *
160
- * <p>If the unsigned magnitude is zero, it is represented by a
161
- * single zero character {@code '0'} ({@code '\u0030'});
162
- * otherwise, the first character of the representation of the
163
- * unsigned magnitude will not be the zero character. The
164
- * following characters are used as octal digits:
165
- *
166
- * <blockquote>
167
- * {@code 01234567}
168
- * </blockquote>
169
- *
170
- * These are the characters {@code '\u0030'} through
171
- * {@code '\u0037'}.
172
- * @param i an integer to be converted to a string.
173
- * @return the string representation of the unsigned integer value&#xA; represented by the argument in octal (base&nbsp;8).
174
- * @see #parseUnsignedInt(String, int)
175
- * @see #toUnsignedString(int, int)
176
- * @since JDK1.0.2
177
- */
178
- toOctalString(i: number): string;
179
-
180
- /**
181
- * Returns a string representation of the integer argument as an
182
- * unsigned integer in base&nbsp;2.
183
- *
184
- * <p>The unsigned integer value is the argument plus 2<sup>32</sup>
185
- * if the argument is negative; otherwise it is equal to the
186
- * argument. This value is converted to a string of ASCII digits
187
- * in binary (base&nbsp;2) with no extra leading {@code 0}s.
188
- *
189
- * <p>The value of the argument can be recovered from the returned
190
- * string {@code s} by calling {@link
191
- * Integer#parseUnsignedInt(String, int)
192
- * Integer.parseUnsignedInt(s, 2)}.
193
- *
194
- * <p>If the unsigned magnitude is zero, it is represented by a
195
- * single zero character {@code '0'} ({@code '\u0030'});
196
- * otherwise, the first character of the representation of the
197
- * unsigned magnitude will not be the zero character. The
198
- * characters {@code '0'} ({@code '\u0030'}) and {@code
199
- * '1'} ({@code '\u0031'}) are used as binary digits.
200
- * @param i an integer to be converted to a string.
201
- * @return the string representation of the unsigned integer value&#xA; represented by the argument in binary (base&nbsp;2).
202
- * @see #parseUnsignedInt(String, int)
203
- * @see #toUnsignedString(int, int)
204
- * @since JDK1.0.2
205
- */
206
- toBinaryString(i: number): string;
207
-
208
- /**
209
- * Returns a {@code String} object representing the
210
- * specified integer. The argument is converted to signed decimal
211
- * representation and returned as a string, exactly as if the
212
- * argument and radix 10 were given as arguments to the {@link
213
- * #toString(int, int)} method.
214
- * @param i an integer to be converted.
215
- * @return a string representation of the argument in base&nbsp;10.
216
- */
217
- toString(i: number): string;
218
-
219
- /**
220
- * Returns a string representation of the argument as an unsigned
221
- * decimal value.
222
- *
223
- * The argument is converted to unsigned decimal representation
224
- * and returned as a string exactly as if the argument and radix
225
- * 10 were given as arguments to the {@link #toUnsignedString(int,
226
- * int)} method.
227
- * @param i an integer to be converted to an unsigned string.
228
- * @return an unsigned string representation of the argument.
229
- * @see #toUnsignedString(int, int)
230
- * @since 1.8
231
- */
232
- toUnsignedString(i: number): string;
233
-
234
- /**
235
- * Parses the string argument as a signed integer in the radix
236
- * specified by the second argument. The characters in the string
237
- * must all be digits of the specified radix (as determined by
238
- * whether {@link java.lang.Character#digit(char, int)} returns a
239
- * nonnegative value), except that the first character may be an
240
- * ASCII minus sign {@code '-'} ({@code '\u002D'}) to
241
- * indicate a negative value or an ASCII plus sign {@code '+'}
242
- * ({@code '\u002B'}) to indicate a positive value. The
243
- * resulting integer value is returned.
244
- *
245
- * <p>An exception of type {@code NumberFormatException} is
246
- * thrown if any of the following situations occurs:
247
- * <ul>
248
- * <li>The first argument is {@code null} or is a string of
249
- * length zero.
250
- *
251
- * <li>The radix is either smaller than
252
- * {@link java.lang.Character#MIN_RADIX} or
253
- * larger than {@link java.lang.Character#MAX_RADIX}.
254
- *
255
- * <li>Any character of the string is not a digit of the specified
256
- * radix, except that the first character may be a minus sign
257
- * {@code '-'} ({@code '\u002D'}) or plus sign
258
- * {@code '+'} ({@code '\u002B'}) provided that the
259
- * string is longer than length 1.
260
- *
261
- * <li>The value represented by the string is not a value of type
262
- * {@code int}.
263
- * </ul>
264
- *
265
- * <p>Examples:
266
- * <blockquote><pre>
267
- * parseInt("0", 10) returns 0
268
- * parseInt("473", 10) returns 473
269
- * parseInt("+42", 10) returns 42
270
- * parseInt("-0", 10) returns 0
271
- * parseInt("-FF", 16) returns -255
272
- * parseInt("1100110", 2) returns 102
273
- * parseInt("2147483647", 10) returns 2147483647
274
- * parseInt("-2147483648", 10) returns -2147483648
275
- * parseInt("2147483648", 10) throws a NumberFormatException
276
- * parseInt("99", 8) throws a NumberFormatException
277
- * parseInt("Kona", 10) throws a NumberFormatException
278
- * parseInt("Kona", 27) returns 411787
279
- * </pre></blockquote>
280
- * @param s the {@code String} containing the integer&#xA; representation to be parsed
281
- * @param radix the radix to be used while parsing {@code s}.
282
- * @return the integer represented by the string argument in the&#xA; specified radix.
283
- * @throws NumberFormatException if the {@code String}&#xA; does not contain a parsable {@code int}.
284
- */
285
- parseInt(s: String | string, radix: number): number;
286
-
287
- /**
288
- * Parses the string argument as a signed decimal integer. The
289
- * characters in the string must all be decimal digits, except
290
- * that the first character may be an ASCII minus sign {@code '-'}
291
- * ({@code '\u002D'}) to indicate a negative value or an
292
- * ASCII plus sign {@code '+'} ({@code '\u002B'}) to
293
- * indicate a positive value. The resulting integer value is
294
- * returned, exactly as if the argument and the radix 10 were
295
- * given as arguments to the {@link #parseInt(java.lang.String,
296
- * int)} method.
297
- * @param s a {@code String} containing the {@code int}&#xA; representation to be parsed
298
- * @return the integer value represented by the argument in decimal.
299
- * @throws NumberFormatException if the string does not contain a&#xA; parsable integer.
300
- */
301
- parseInt(s: String | string): number;
302
-
303
- /**
304
- * Parses the string argument as an unsigned integer in the radix
305
- * specified by the second argument. An unsigned integer maps the
306
- * values usually associated with negative numbers to positive
307
- * numbers larger than {@code MAX_VALUE}.
308
- *
309
- * The characters in the string must all be digits of the
310
- * specified radix (as determined by whether {@link
311
- * java.lang.Character#digit(char, int)} returns a nonnegative
312
- * value), except that the first character may be an ASCII plus
313
- * sign {@code '+'} ({@code '\u002B'}). The resulting
314
- * integer value is returned.
315
- *
316
- * <p>An exception of type {@code NumberFormatException} is
317
- * thrown if any of the following situations occurs:
318
- * <ul>
319
- * <li>The first argument is {@code null} or is a string of
320
- * length zero.
321
- *
322
- * <li>The radix is either smaller than
323
- * {@link java.lang.Character#MIN_RADIX} or
324
- * larger than {@link java.lang.Character#MAX_RADIX}.
325
- *
326
- * <li>Any character of the string is not a digit of the specified
327
- * radix, except that the first character may be a plus sign
328
- * {@code '+'} ({@code '\u002B'}) provided that the
329
- * string is longer than length 1.
330
- *
331
- * <li>The value represented by the string is larger than the
332
- * largest unsigned {@code int}, 2<sup>32</sup>-1.
333
- *
334
- * </ul>
335
- * @param s the {@code String} containing the unsigned integer&#xA; representation to be parsed
336
- * @param radix the radix to be used while parsing {@code s}.
337
- * @return the integer represented by the string argument in the&#xA; specified radix.
338
- * @throws NumberFormatException if the {@code String}&#xA; does not contain a parsable {@code int}.
339
- * @since 1.8
340
- */
341
- parseUnsignedInt(s: String | string, radix: number): number;
342
-
343
- /**
344
- * Parses the string argument as an unsigned decimal integer. The
345
- * characters in the string must all be decimal digits, except
346
- * that the first character may be an an ASCII plus sign {@code
347
- * '+'} ({@code '\u002B'}). The resulting integer value
348
- * is returned, exactly as if the argument and the radix 10 were
349
- * given as arguments to the {@link
350
- * #parseUnsignedInt(java.lang.String, int)} method.
351
- * @param s a {@code String} containing the unsigned {@code int}&#xA; representation to be parsed
352
- * @return the unsigned integer value represented by the argument in decimal.
353
- * @throws NumberFormatException if the string does not contain a&#xA; parsable unsigned integer.
354
- * @since 1.8
355
- */
356
- parseUnsignedInt(s: String | string): number;
357
-
358
- /**
359
- * Returns an {@code Integer} object holding the value
360
- * extracted from the specified {@code String} when parsed
361
- * with the radix given by the second argument. The first argument
362
- * is interpreted as representing a signed integer in the radix
363
- * specified by the second argument, exactly as if the arguments
364
- * were given to the {@link #parseInt(java.lang.String, int)}
365
- * method. The result is an {@code Integer} object that
366
- * represents the integer value specified by the string.
367
- *
368
- * <p>In other words, this method returns an {@code Integer}
369
- * object equal to the value of:
370
- *
371
- * <blockquote>
372
- * {@code new Integer(Integer.parseInt(s, radix))}
373
- * </blockquote>
374
- * @param s the string to be parsed.
375
- * @param radix the radix to be used in interpreting {@code s}
376
- * @return an {@code Integer} object holding the value&#xA; represented by the string argument in the specified&#xA; radix.
377
- * @throws NumberFormatException if the {@code String}&#xA; does not contain a parsable {@code int}.
378
- */
379
- valueOf(s: String | string, radix: number): number;
380
-
381
- /**
382
- * Returns an {@code Integer} object holding the
383
- * value of the specified {@code String}. The argument is
384
- * interpreted as representing a signed decimal integer, exactly
385
- * as if the argument were given to the {@link
386
- * #parseInt(java.lang.String)} method. The result is an
387
- * {@code Integer} object that represents the integer value
388
- * specified by the string.
389
- *
390
- * <p>In other words, this method returns an {@code Integer}
391
- * object equal to the value of:
392
- *
393
- * <blockquote>
394
- * {@code new Integer(Integer.parseInt(s))}
395
- * </blockquote>
396
- * @param s the string to be parsed.
397
- * @return an {@code Integer} object holding the value&#xA; represented by the string argument.
398
- * @throws NumberFormatException if the string cannot be parsed&#xA; as an integer.
399
- */
400
- valueOf(s: String | string): number;
401
-
402
- /**
403
- * Returns an {@code Integer} instance representing the specified
404
- * {@code int} value. If a new {@code Integer} instance is not
405
- * required, this method should generally be used in preference to
406
- * the constructor {@link #Integer(int)}, as this method is likely
407
- * to yield significantly better space and time performance by
408
- * caching frequently requested values.
409
- *
410
- * This method will always cache values in the range -128 to 127,
411
- * inclusive, and may cache other values outside of this range.
412
- * @param i an {@code int} value.
413
- * @return an {@code Integer} instance representing {@code i}.
414
- * @since 1.5
415
- */
416
- valueOf(i: number): number;
417
-
418
31
  /**
419
32
  * Returns the value of this {@code Integer} as a {@code byte}
420
33
  * after a narrowing primitive conversion.
@@ -474,15 +87,6 @@ export type Integer = Number &
474
87
  */
475
88
  hashCode(): number;
476
89
 
477
- /**
478
- * Returns a hash code for a {@code int} value; compatible with
479
- * {@code Integer.hashCode()}.
480
- * @param value the value to hash
481
- * @since 1.8
482
- * @return a hash code value for a {@code int} value.
483
- */
484
- hashCode(value: number): number;
485
-
486
90
  /**
487
91
  * Compares this object to the specified object. The result is
488
92
  * {@code true} if and only if the argument is not
@@ -493,156 +97,6 @@ export type Integer = Number &
493
97
  */
494
98
  equals(obj: unknown): boolean;
495
99
 
496
- /**
497
- * Determines the integer value of the system property with the
498
- * specified name.
499
- *
500
- * <p>The first argument is treated as the name of a system
501
- * property. System properties are accessible through the {@link
502
- * java.lang.System#getProperty(java.lang.String)} method. The
503
- * string value of this property is then interpreted as an integer
504
- * value using the grammar supported by {@link Integer#decode decode} and
505
- * an {@code Integer} object representing this value is returned.
506
- *
507
- * <p>If there is no property with the specified name, if the
508
- * specified name is empty or {@code null}, or if the property
509
- * does not have the correct numeric format, then {@code null} is
510
- * returned.
511
- *
512
- * <p>In other words, this method returns an {@code Integer}
513
- * object equal to the value of:
514
- *
515
- * <blockquote>
516
- * {@code getInteger(nm, null)}
517
- * </blockquote>
518
- * @param nm property name.
519
- * @return the {@code Integer} value of the property.
520
- * @throws SecurityException for the same reasons as&#xA; {@link System#getProperty(String) System.getProperty}
521
- * @see java.lang.System#getProperty(java.lang.String)
522
- * @see java.lang.System#getProperty(java.lang.String, java.lang.String)
523
- */
524
- getInteger(nm: String | string): number;
525
-
526
- /**
527
- * Determines the integer value of the system property with the
528
- * specified name.
529
- *
530
- * <p>The first argument is treated as the name of a system
531
- * property. System properties are accessible through the {@link
532
- * java.lang.System#getProperty(java.lang.String)} method. The
533
- * string value of this property is then interpreted as an integer
534
- * value using the grammar supported by {@link Integer#decode decode} and
535
- * an {@code Integer} object representing this value is returned.
536
- *
537
- * <p>The second argument is the default value. An {@code Integer} object
538
- * that represents the value of the second argument is returned if there
539
- * is no property of the specified name, if the property does not have
540
- * the correct numeric format, or if the specified name is empty or
541
- * {@code null}.
542
- *
543
- * <p>In other words, this method returns an {@code Integer} object
544
- * equal to the value of:
545
- *
546
- * <blockquote>
547
- * {@code getInteger(nm, new Integer(val))}
548
- * </blockquote>
549
- *
550
- * but in practice it may be implemented in a manner such as:
551
- *
552
- * <blockquote><pre>
553
- * Integer result = getInteger(nm, null);
554
- * return (result == null) ? new Integer(val) : result;
555
- * </pre></blockquote>
556
- *
557
- * to avoid the unnecessary allocation of an {@code Integer}
558
- * object when the default value is not needed.
559
- * @param nm property name.
560
- * @param val default value.
561
- * @return the {@code Integer} value of the property.
562
- * @throws SecurityException for the same reasons as&#xA; {@link System#getProperty(String) System.getProperty}
563
- * @see java.lang.System#getProperty(java.lang.String)
564
- * @see java.lang.System#getProperty(java.lang.String, java.lang.String)
565
- */
566
- getInteger(nm: String | string, val: number): number;
567
-
568
- /**
569
- * Returns the integer value of the system property with the
570
- * specified name. The first argument is treated as the name of a
571
- * system property. System properties are accessible through the
572
- * {@link java.lang.System#getProperty(java.lang.String)} method.
573
- * The string value of this property is then interpreted as an
574
- * integer value, as per the {@link Integer#decode decode} method,
575
- * and an {@code Integer} object representing this value is
576
- * returned; in summary:
577
- *
578
- * <ul><li>If the property value begins with the two ASCII characters
579
- * {@code 0x} or the ASCII character {@code #}, not
580
- * followed by a minus sign, then the rest of it is parsed as a
581
- * hexadecimal integer exactly as by the method
582
- * {@link #valueOf(java.lang.String, int)} with radix 16.
583
- * <li>If the property value begins with the ASCII character
584
- * {@code 0} followed by another character, it is parsed as an
585
- * octal integer exactly as by the method
586
- * {@link #valueOf(java.lang.String, int)} with radix 8.
587
- * <li>Otherwise, the property value is parsed as a decimal integer
588
- * exactly as by the method {@link #valueOf(java.lang.String, int)}
589
- * with radix 10.
590
- * </ul>
591
- *
592
- * <p>The second argument is the default value. The default value is
593
- * returned if there is no property of the specified name, if the
594
- * property does not have the correct numeric format, or if the
595
- * specified name is empty or {@code null}.
596
- * @param nm property name.
597
- * @param val default value.
598
- * @return the {@code Integer} value of the property.
599
- * @throws SecurityException for the same reasons as&#xA; {@link System#getProperty(String) System.getProperty}
600
- * @see System#getProperty(java.lang.String)
601
- * @see System#getProperty(java.lang.String, java.lang.String)
602
- */
603
- getInteger(nm: String | string, val: Integer | number): number;
604
-
605
- /**
606
- * Decodes a {@code String} into an {@code Integer}.
607
- * Accepts decimal, hexadecimal, and octal numbers given
608
- * by the following grammar:
609
- *
610
- * <blockquote>
611
- * <dl>
612
- * <dt><i>DecodableString:</i>
613
- * <dd><i>Sign<sub>opt</sub> DecimalNumeral</i>
614
- * <dd><i>Sign<sub>opt</sub></i> {@code 0x} <i>HexDigits</i>
615
- * <dd><i>Sign<sub>opt</sub></i> {@code 0X} <i>HexDigits</i>
616
- * <dd><i>Sign<sub>opt</sub></i> {@code #} <i>HexDigits</i>
617
- * <dd><i>Sign<sub>opt</sub></i> {@code 0} <i>OctalDigits</i>
618
- *
619
- * <dt><i>Sign:</i>
620
- * <dd>{@code -}
621
- * <dd>{@code +}
622
- * </dl>
623
- * </blockquote>
624
- *
625
- * <i>DecimalNumeral</i>, <i>HexDigits</i>, and <i>OctalDigits</i>
626
- * are as defined in section 3.10.1 of
627
- * <cite>The Java&trade; Language Specification</cite>,
628
- * except that underscores are not accepted between digits.
629
- *
630
- * <p>The sequence of characters following an optional
631
- * sign and/or radix specifier ("{@code 0x}", "{@code 0X}",
632
- * "{@code #}", or leading zero) is parsed as by the {@code
633
- * Integer.parseInt} method with the indicated radix (10, 16, or
634
- * 8). This sequence of characters must represent a positive
635
- * value or a {@link NumberFormatException} will be thrown. The
636
- * result is negated if first character of the specified {@code
637
- * String} is the minus sign. No whitespace characters are
638
- * permitted in the {@code String}.
639
- * @param nm the {@code String} to decode.
640
- * @return an {@code Integer} object holding the {@code int}&#xA; value represented by {@code nm}
641
- * @throws NumberFormatException if the {@code String} does not&#xA; contain a parsable integer.
642
- * @see java.lang.Integer#parseInt(java.lang.String, int)
643
- */
644
- decode(nm: String | string): number;
645
-
646
100
  /**
647
101
  * Compares two {@code Integer} objects numerically.
648
102
  * @param anotherInteger the {@code Integer} to be compared.
@@ -651,240 +105,6 @@ export type Integer = Number &
651
105
  */
652
106
  compareTo(anotherInteger: Integer | number): number;
653
107
 
654
- /**
655
- * Compares two {@code int} values numerically.
656
- * The value returned is identical to what would be returned by:
657
- * <pre>
658
- * Integer.valueOf(x).compareTo(Integer.valueOf(y))
659
- * </pre>
660
- * @param x the first {@code int} to compare
661
- * @param y the second {@code int} to compare
662
- * @return the value {@code 0} if {@code x == y};&#xA; a value less than {@code 0} if {@code x < y}; and&#xA; a value greater than {@code 0} if {@code x > y}
663
- * @since 1.7
664
- */
665
- compare(x: number, y: number): number;
666
-
667
- /**
668
- * Compares two {@code int} values numerically treating the values
669
- * as unsigned.
670
- * @param x the first {@code int} to compare
671
- * @param y the second {@code int} to compare
672
- * @return the value {@code 0} if {@code x == y}; a value less&#xA; than {@code 0} if {@code x < y} as unsigned values; and&#xA; a value greater than {@code 0} if {@code x > y} as&#xA; unsigned values
673
- * @since 1.8
674
- */
675
- compareUnsigned(x: number, y: number): number;
676
-
677
- /**
678
- * Converts the argument to a {@code long} by an unsigned
679
- * conversion. In an unsigned conversion to a {@code long}, the
680
- * high-order 32 bits of the {@code long} are zero and the
681
- * low-order 32 bits are equal to the bits of the integer
682
- * argument.
683
- *
684
- * Consequently, zero and positive {@code int} values are mapped
685
- * to a numerically equal {@code long} value and negative {@code
686
- * int} values are mapped to a {@code long} value equal to the
687
- * input plus 2<sup>32</sup>.
688
- * @param x the value to convert to an unsigned {@code long}
689
- * @return the argument converted to {@code long} by an unsigned&#xA; conversion
690
- * @since 1.8
691
- */
692
- toUnsignedLong(x: number): number;
693
-
694
- /**
695
- * Returns the unsigned quotient of dividing the first argument by
696
- * the second where each argument and the result is interpreted as
697
- * an unsigned value.
698
- *
699
- * <p>Note that in two's complement arithmetic, the three other
700
- * basic arithmetic operations of add, subtract, and multiply are
701
- * bit-wise identical if the two operands are regarded as both
702
- * being signed or both being unsigned. Therefore separate {@code
703
- * addUnsigned}, etc. methods are not provided.
704
- * @param dividend the value to be divided
705
- * @param divisor the value doing the dividing
706
- * @return the unsigned quotient of the first argument divided by&#xA; the second argument
707
- * @see #remainderUnsigned
708
- * @since 1.8
709
- */
710
- divideUnsigned(dividend: number, divisor: number): number;
711
-
712
- /**
713
- * Returns the unsigned remainder from dividing the first argument
714
- * by the second where each argument and the result is interpreted
715
- * as an unsigned value.
716
- * @param dividend the value to be divided
717
- * @param divisor the value doing the dividing
718
- * @return the unsigned remainder of the first argument divided by&#xA; the second argument
719
- * @see #divideUnsigned
720
- * @since 1.8
721
- */
722
- remainderUnsigned(dividend: number, divisor: number): number;
723
-
724
- /**
725
- * Returns an {@code int} value with at most a single one-bit, in the
726
- * position of the highest-order ("leftmost") one-bit in the specified
727
- * {@code int} value. Returns zero if the specified value has no
728
- * one-bits in its two's complement binary representation, that is, if it
729
- * is equal to zero.
730
- * @param i the value whose highest one bit is to be computed
731
- * @return an {@code int} value with a single one-bit, in the position&#xA; of the highest-order one-bit in the specified value, or zero if&#xA; the specified value is itself equal to zero.
732
- * @since 1.5
733
- */
734
- highestOneBit(i: number): number;
735
-
736
- /**
737
- * Returns an {@code int} value with at most a single one-bit, in the
738
- * position of the lowest-order ("rightmost") one-bit in the specified
739
- * {@code int} value. Returns zero if the specified value has no
740
- * one-bits in its two's complement binary representation, that is, if it
741
- * is equal to zero.
742
- * @param i the value whose lowest one bit is to be computed
743
- * @return an {@code int} value with a single one-bit, in the position&#xA; of the lowest-order one-bit in the specified value, or zero if&#xA; the specified value is itself equal to zero.
744
- * @since 1.5
745
- */
746
- lowestOneBit(i: number): number;
747
-
748
- /**
749
- * Returns the number of zero bits preceding the highest-order
750
- * ("leftmost") one-bit in the two's complement binary representation
751
- * of the specified {@code int} value. Returns 32 if the
752
- * specified value has no one-bits in its two's complement representation,
753
- * in other words if it is equal to zero.
754
- *
755
- * <p>Note that this method is closely related to the logarithm base 2.
756
- * For all positive {@code int} values x:
757
- * <ul>
758
- * <li>floor(log<sub>2</sub>(x)) = {@code 31 - numberOfLeadingZeros(x)}
759
- * <li>ceil(log<sub>2</sub>(x)) = {@code 32 - numberOfLeadingZeros(x - 1)}
760
- * </ul>
761
- * @param i the value whose number of leading zeros is to be computed
762
- * @return the number of zero bits preceding the highest-order&#xA; ("leftmost") one-bit in the two's complement binary representation&#xA; of the specified {@code int} value, or 32 if the value&#xA; is equal to zero.
763
- * @since 1.5
764
- */
765
- numberOfLeadingZeros(i: number): number;
766
-
767
- /**
768
- * Returns the number of zero bits following the lowest-order ("rightmost")
769
- * one-bit in the two's complement binary representation of the specified
770
- * {@code int} value. Returns 32 if the specified value has no
771
- * one-bits in its two's complement representation, in other words if it is
772
- * equal to zero.
773
- * @param i the value whose number of trailing zeros is to be computed
774
- * @return the number of zero bits following the lowest-order ("rightmost")&#xA; one-bit in the two's complement binary representation of the&#xA; specified {@code int} value, or 32 if the value is equal&#xA; to zero.
775
- * @since 1.5
776
- */
777
- numberOfTrailingZeros(i: number): number;
778
-
779
- /**
780
- * Returns the number of one-bits in the two's complement binary
781
- * representation of the specified {@code int} value. This function is
782
- * sometimes referred to as the <i>population count</i>.
783
- * @param i the value whose bits are to be counted
784
- * @return the number of one-bits in the two's complement binary&#xA; representation of the specified {@code int} value.
785
- * @since 1.5
786
- */
787
- bitCount(i: number): number;
788
-
789
- /**
790
- * Returns the value obtained by rotating the two's complement binary
791
- * representation of the specified {@code int} value left by the
792
- * specified number of bits. (Bits shifted out of the left hand, or
793
- * high-order, side reenter on the right, or low-order.)
794
- *
795
- * <p>Note that left rotation with a negative distance is equivalent to
796
- * right rotation: {@code rotateLeft(val, -distance) == rotateRight(val,
797
- * distance)}. Note also that rotation by any multiple of 32 is a
798
- * no-op, so all but the last five bits of the rotation distance can be
799
- * ignored, even if the distance is negative: {@code rotateLeft(val,
800
- * distance) == rotateLeft(val, distance & 0x1F)}.
801
- * @param i the value whose bits are to be rotated left
802
- * @param distance the number of bit positions to rotate left
803
- * @return the value obtained by rotating the two's complement binary&#xA; representation of the specified {@code int} value left by the&#xA; specified number of bits.
804
- * @since 1.5
805
- */
806
- rotateLeft(i: number, distance: number): number;
807
-
808
- /**
809
- * Returns the value obtained by rotating the two's complement binary
810
- * representation of the specified {@code int} value right by the
811
- * specified number of bits. (Bits shifted out of the right hand, or
812
- * low-order, side reenter on the left, or high-order.)
813
- *
814
- * <p>Note that right rotation with a negative distance is equivalent to
815
- * left rotation: {@code rotateRight(val, -distance) == rotateLeft(val,
816
- * distance)}. Note also that rotation by any multiple of 32 is a
817
- * no-op, so all but the last five bits of the rotation distance can be
818
- * ignored, even if the distance is negative: {@code rotateRight(val,
819
- * distance) == rotateRight(val, distance & 0x1F)}.
820
- * @param i the value whose bits are to be rotated right
821
- * @param distance the number of bit positions to rotate right
822
- * @return the value obtained by rotating the two's complement binary&#xA; representation of the specified {@code int} value right by the&#xA; specified number of bits.
823
- * @since 1.5
824
- */
825
- rotateRight(i: number, distance: number): number;
826
-
827
- /**
828
- * Returns the value obtained by reversing the order of the bits in the
829
- * two's complement binary representation of the specified {@code int}
830
- * value.
831
- * @param i the value to be reversed
832
- * @return the value obtained by reversing order of the bits in the&#xA; specified {@code int} value.
833
- * @since 1.5
834
- */
835
- reverse(i: number): number;
836
-
837
- /**
838
- * Returns the signum function of the specified {@code int} value. (The
839
- * return value is -1 if the specified value is negative; 0 if the
840
- * specified value is zero; and 1 if the specified value is positive.)
841
- * @param i the value whose signum is to be computed
842
- * @return the signum function of the specified {@code int} value.
843
- * @since 1.5
844
- */
845
- signum(i: number): number;
846
-
847
- /**
848
- * Returns the value obtained by reversing the order of the bytes in the
849
- * two's complement representation of the specified {@code int} value.
850
- * @param i the value whose bytes are to be reversed
851
- * @return the value obtained by reversing the bytes in the specified&#xA; {@code int} value.
852
- * @since 1.5
853
- */
854
- reverseBytes(i: number): number;
855
-
856
- /**
857
- * Adds two integers together as per the + operator.
858
- * @param a the first operand
859
- * @param b the second operand
860
- * @return the sum of {@code a} and {@code b}
861
- * @see java.util.function.BinaryOperator
862
- * @since 1.8
863
- */
864
- sum(a: number, b: number): number;
865
-
866
- /**
867
- * Returns the greater of two {@code int} values
868
- * as if by calling {@link Math#max(int, int) Math.max}.
869
- * @param a the first operand
870
- * @param b the second operand
871
- * @return the greater of {@code a} and {@code b}
872
- * @see java.util.function.BinaryOperator
873
- * @since 1.8
874
- */
875
- max(a: number, b: number): number;
876
-
877
- /**
878
- * Returns the smaller of two {@code int} values
879
- * as if by calling {@link Math#min(int, int) Math.min}.
880
- * @param a the first operand
881
- * @param b the second operand
882
- * @return the smaller of {@code a} and {@code b}
883
- * @see java.util.function.BinaryOperator
884
- * @since 1.8
885
- */
886
- min(a: number, b: number): number;
887
-
888
108
  /**
889
109
  * A constant holding the minimum value an {@code int} can
890
110
  * have, -2<sup>31</sup>.