@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,7 +1,6 @@
1
1
  import type { String } from "../../../lang/String";
2
-
3
- import type { SortedMap } from "../../../util/SortedMap";
4
2
  import type { Set } from "../../../util/Set";
3
+
5
4
  import type { Locale } from "../../../util/Locale";
6
5
 
7
6
  import type { Object } from "../../../lang/Object";
@@ -226,62 +225,6 @@ import type { Comparable } from "../../../lang/Comparable";
226
225
  */
227
226
  export type Charset = Object &
228
227
  Comparable & {
229
- /**
230
- * Tells whether the named charset is supported.
231
- * @param charsetName
 The name of the requested charset; may be either
 a canonical name or an alias
232
- * @return <tt>true</tt> if, and only if, support for the named charset&#xA; is available in the current Java virtual machine
233
- * @throws IllegalCharsetNameException&#xA; If the given charset name is illegal
234
- * @throws IllegalArgumentException&#xA; If the given <tt>charsetName</tt> is null
235
- */
236
- isSupported(charsetName: String | string): boolean;
237
-
238
- /**
239
- * Returns a charset object for the named charset.
240
- * @param charsetName&#xA; The name of the requested charset; may be either&#xA; a canonical name or an alias
241
- * @return A charset object for the named charset
242
- * @throws IllegalCharsetNameException&#xA; If the given charset name is illegal
243
- * @throws IllegalArgumentException&#xA; If the given <tt>charsetName</tt> is null
244
- * @throws UnsupportedCharsetException&#xA; If no support for the named charset is available&#xA; in this instance of the Java virtual machine
245
- */
246
- forName(charsetName: String | string): Charset;
247
-
248
- /**
249
- * Constructs a sorted map from canonical charset names to charset objects.
250
- *
251
- * <p> The map returned by this method will have one entry for each charset
252
- * for which support is available in the current Java virtual machine. If
253
- * two or more supported charsets have the same canonical name then the
254
- * resulting map will contain just one of them; which one it will contain
255
- * is not specified. </p>
256
- *
257
- * <p> The invocation of this method, and the subsequent use of the
258
- * resulting map, may cause time-consuming disk or network I/O operations
259
- * to occur. This method is provided for applications that need to
260
- * enumerate all of the available charsets, for example to allow user
261
- * charset selection. This method is not used by the {@link #forName
262
- * forName} method, which instead employs an efficient incremental lookup
263
- * algorithm.
264
- *
265
- * <p> This method may return different results at different times if new
266
- * charset providers are dynamically made available to the current Java
267
- * virtual machine. In the absence of such changes, the charsets returned
268
- * by this method are exactly those that can be retrieved via the {@link
269
- * #forName forName} method. </p>
270
- * @return An immutable, case-insensitive map from canonical charset names&#xA; to charset objects
271
- */
272
- availableCharsets(): SortedMap;
273
-
274
- /**
275
- * Returns the default charset of this Java virtual machine.
276
- *
277
- * <p> The default charset is determined during virtual-machine startup and
278
- * typically depends upon the locale and charset of the underlying
279
- * operating system.
280
- * @return A charset object for the default charset
281
- * @since 1.5
282
- */
283
- defaultCharset(): Charset;
284
-
285
228
  /**
286
229
  * Returns this charset's canonical name.
287
230
  * @return The canonical name of this charset
@@ -5,10 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- isSupported: function isSupported() {},
9
- forName: function forName() {},
10
- availableCharsets: function availableCharsets() {},
11
- defaultCharset: function defaultCharset() {},
12
8
  name: function name() {},
13
9
  aliases: function aliases() {},
14
10
  displayName: function displayName() {},
@@ -1,4 +1,3 @@
1
- import type { List } from "../../../../util/List";
2
1
  import type { String } from "../../../../lang/String";
3
2
  import type { URI } from "../../../../net/URI";
4
3
  import type { Map } from "../../../../util/Map";
@@ -60,17 +59,6 @@ import type { Object } from "../../../../lang/Object";
60
59
  * @since 1.7
61
60
  */
62
61
  export type FileSystemProvider = Object & {
63
- /**
64
- * Returns a list of the installed file system providers.
65
- *
66
- * <p> The first invocation of this method causes the default provider to be
67
- * initialized (if not already initialized) and loads any other installed
68
- * providers as described by the {@link FileSystems} class.
69
- * @return An unmodifiable list of the installed file system providers. The&#xA; list contains at least one element, that is the default file&#xA; system provider
70
- * @throws ServiceConfigurationError&#xA; When an error occurs while loading a service provider
71
- */
72
- installedProviders(): List;
73
-
74
62
  /**
75
63
  * Returns the URI scheme that identifies this provider.
76
64
  * @return The URI scheme
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- installedProviders: function installedProviders() {},
9
8
  getScheme: function getScheme() {},
10
9
  newFileSystem: function newFileSystem() {},
11
10
  getFileSystem: function getFileSystem() {},
@@ -4,8 +4,6 @@ import type { FieldPosition } from "../FieldPosition";
4
4
  import type { Date } from "../../util/Date";
5
5
  import type { String } from "../../lang/String";
6
6
  import type { ParsePosition } from "../ParsePosition";
7
-
8
- import type { Locale } from "../../util/Locale";
9
7
  import type { Calendar } from "../../util/Calendar";
10
8
 
11
9
  import type { NumberFormat } from "../NumberFormat";
@@ -203,134 +201,6 @@ export type DateFormat = Format & {
203
201
  */
204
202
  parseObject(source: String | string, pos: ParsePosition): unknown;
205
203
 
206
- /**
207
- * Gets the time formatter with the default formatting style
208
- * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale.
209
- * <p>This is equivalent to calling
210
- * {@link #getTimeInstance(int, Locale) getTimeInstance(DEFAULT,
211
- * Locale.getDefault(Locale.Category.FORMAT))}.
212
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
213
- * @see java.util.Locale.Category#FORMAT
214
- * @return a time formatter.
215
- */
216
- getTimeInstance(): DateFormat;
217
-
218
- /**
219
- * Gets the time formatter with the given formatting style
220
- * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale.
221
- * <p>This is equivalent to calling
222
- * {@link #getTimeInstance(int, Locale) getTimeInstance(style,
223
- * Locale.getDefault(Locale.Category.FORMAT))}.
224
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
225
- * @see java.util.Locale.Category#FORMAT
226
- * @param style the given formatting style. For example,&#xA; SHORT for "h:mm a" in the US locale.
227
- * @return a time formatter.
228
- */
229
- getTimeInstance(style: number): DateFormat;
230
-
231
- /**
232
- * Gets the time formatter with the given formatting style
233
- * for the given locale.
234
- * @param style the given formatting style. For example,&#xA; SHORT for "h:mm a" in the US locale.
235
- * @param aLocale the given locale.
236
- * @return a time formatter.
237
- */
238
- getTimeInstance(style: number, aLocale: Locale): DateFormat;
239
-
240
- /**
241
- * Gets the date formatter with the default formatting style
242
- * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale.
243
- * <p>This is equivalent to calling
244
- * {@link #getDateInstance(int, Locale) getDateInstance(DEFAULT,
245
- * Locale.getDefault(Locale.Category.FORMAT))}.
246
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
247
- * @see java.util.Locale.Category#FORMAT
248
- * @return a date formatter.
249
- */
250
- getDateInstance(): DateFormat;
251
-
252
- /**
253
- * Gets the date formatter with the given formatting style
254
- * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale.
255
- * <p>This is equivalent to calling
256
- * {@link #getDateInstance(int, Locale) getDateInstance(style,
257
- * Locale.getDefault(Locale.Category.FORMAT))}.
258
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
259
- * @see java.util.Locale.Category#FORMAT
260
- * @param style the given formatting style. For example,&#xA; SHORT for "M/d/yy" in the US locale.
261
- * @return a date formatter.
262
- */
263
- getDateInstance(style: number): DateFormat;
264
-
265
- /**
266
- * Gets the date formatter with the given formatting style
267
- * for the given locale.
268
- * @param style the given formatting style. For example,&#xA; SHORT for "M/d/yy" in the US locale.
269
- * @param aLocale the given locale.
270
- * @return a date formatter.
271
- */
272
- getDateInstance(style: number, aLocale: Locale): DateFormat;
273
-
274
- /**
275
- * Gets the date/time formatter with the default formatting style
276
- * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale.
277
- * <p>This is equivalent to calling
278
- * {@link #getDateTimeInstance(int, int, Locale) getDateTimeInstance(DEFAULT,
279
- * DEFAULT, Locale.getDefault(Locale.Category.FORMAT))}.
280
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
281
- * @see java.util.Locale.Category#FORMAT
282
- * @return a date/time formatter.
283
- */
284
- getDateTimeInstance(): DateFormat;
285
-
286
- /**
287
- * Gets the date/time formatter with the given date and time
288
- * formatting styles for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale.
289
- * <p>This is equivalent to calling
290
- * {@link #getDateTimeInstance(int, int, Locale) getDateTimeInstance(dateStyle,
291
- * timeStyle, Locale.getDefault(Locale.Category.FORMAT))}.
292
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
293
- * @see java.util.Locale.Category#FORMAT
294
- * @param dateStyle the given date formatting style. For example,&#xA; SHORT for "M/d/yy" in the US locale.
295
- * @param timeStyle the given time formatting style. For example,&#xA; SHORT for "h:mm a" in the US locale.
296
- * @return a date/time formatter.
297
- */
298
- getDateTimeInstance(dateStyle: number, timeStyle: number): DateFormat;
299
-
300
- /**
301
- * Gets the date/time formatter with the given formatting styles
302
- * for the given locale.
303
- * @param dateStyle the given date formatting style.
304
- * @param timeStyle the given time formatting style.
305
- * @param aLocale the given locale.
306
- * @return a date/time formatter.
307
- */
308
- getDateTimeInstance(
309
- dateStyle: number,
310
- timeStyle: number,
311
- aLocale: Locale
312
- ): DateFormat;
313
-
314
- /**
315
- * Get a default date/time formatter that uses the SHORT style for both the
316
- * date and the time.
317
- * @return a date/time formatter
318
- */
319
- getInstance(): DateFormat;
320
-
321
- /**
322
- * Returns an array of all locales for which the
323
- * <code>get*Instance</code> methods of this class can return
324
- * localized instances.
325
- * The returned array represents the union of locales supported by the Java
326
- * runtime and by installed
327
- * {@link java.text.spi.DateFormatProvider DateFormatProvider} implementations.
328
- * It must contain at least a <code>Locale</code> instance equal to
329
- * {@link java.util.Locale#US Locale.US}.
330
- * @return An array of locales for which localized&#xA; <code>DateFormat</code> instances are available.
331
- */
332
- getAvailableLocales(): Locale;
333
-
334
204
  /**
335
205
  * Set the calendar to be used by this date format. Initially, the default
336
206
  * calendar for the specified or default locale is used.
@@ -8,11 +8,6 @@ var _default = {
8
8
  format: function format() {},
9
9
  parse: function parse() {},
10
10
  parseObject: function parseObject() {},
11
- getTimeInstance: function getTimeInstance() {},
12
- getDateInstance: function getDateInstance() {},
13
- getDateTimeInstance: function getDateTimeInstance() {},
14
- getInstance: function getInstance() {},
15
- getAvailableLocales: function getAvailableLocales() {},
16
11
  setCalendar: function setCalendar() {},
17
12
  getCalendar: function getCalendar() {},
18
13
  setNumberFormat: function setNumberFormat() {},
@@ -1,4 +1,3 @@
1
- import type { Locale } from "../../util/Locale";
2
1
  import type { String } from "../../lang/String";
3
2
 
4
3
  import type { Object } from "../../lang/Object";
@@ -53,50 +52,6 @@ import type { Cloneable } from "../../lang/Cloneable";
53
52
  export type DateFormatSymbols = Object &
54
53
  Serializable &
55
54
  Cloneable & {
56
- /**
57
- * Returns an array of all locales for which the
58
- * <code>getInstance</code> methods of this class can return
59
- * localized instances.
60
- * The returned array represents the union of locales supported by the
61
- * Java runtime and by installed
62
- * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider}
63
- * implementations. It must contain at least a <code>Locale</code>
64
- * instance equal to {@link java.util.Locale#US Locale.US}.
65
- * @return An array of locales for which localized&#xA; <code>DateFormatSymbols</code> instances are available.
66
- * @since 1.6
67
- */
68
- getAvailableLocales(): Locale;
69
-
70
- /**
71
- * Gets the <code>DateFormatSymbols</code> instance for the default
72
- * locale. This method provides access to <code>DateFormatSymbols</code>
73
- * instances for locales supported by the Java runtime itself as well
74
- * as for those supported by installed
75
- * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider}
76
- * implementations.
77
- * <p>This is equivalent to calling {@link #getInstance(Locale)
78
- * getInstance(Locale.getDefault(Locale.Category.FORMAT))}.
79
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
80
- * @see java.util.Locale.Category#FORMAT
81
- * @return a <code>DateFormatSymbols</code> instance.
82
- * @since 1.6
83
- */
84
- getInstance(): DateFormatSymbols;
85
-
86
- /**
87
- * Gets the <code>DateFormatSymbols</code> instance for the specified
88
- * locale. This method provides access to <code>DateFormatSymbols</code>
89
- * instances for locales supported by the Java runtime itself as well
90
- * as for those supported by installed
91
- * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider}
92
- * implementations.
93
- * @param locale the given locale.
94
- * @return a <code>DateFormatSymbols</code> instance.
95
- * @throws NullPointerException if <code>locale</code> is null
96
- * @since 1.6
97
- */
98
- getInstance(locale: Locale): DateFormatSymbols;
99
-
100
55
  /**
101
56
  * Gets era strings. For example: "AD" and "BC".
102
57
  * @return the era strings.
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- getAvailableLocales: function getAvailableLocales() {},
9
- getInstance: function getInstance() {},
10
8
  getEras: function getEras() {},
11
9
  setEras: function setEras() {},
12
10
  getMonths: function getMonths() {},
@@ -6,8 +6,6 @@ import type { ParsePosition } from "../ParsePosition";
6
6
 
7
7
  import type { Number } from "../../lang/Number";
8
8
 
9
- import type { Locale } from "../../util/Locale";
10
-
11
9
  import type { Currency } from "../../util/Currency";
12
10
  import type { RoundingMode } from "../../math/RoundingMode";
13
11
  import type { Format } from "../Format";
@@ -282,127 +280,6 @@ export type NumberFormat = Format & {
282
280
  */
283
281
  setParseIntegerOnly(value: boolean): void;
284
282
 
285
- /**
286
- * Returns a general-purpose number format for the current default
287
- * {@link java.util.Locale.Category#FORMAT FORMAT} locale.
288
- * This is the same as calling
289
- * {@link #getNumberInstance() getNumberInstance()}.
290
- * @return the {@code NumberFormat} instance for general-purpose number&#xA; formatting
291
- */
292
- getInstance(): NumberFormat;
293
-
294
- /**
295
- * Returns a general-purpose number format for the specified locale.
296
- * This is the same as calling
297
- * {@link #getNumberInstance(java.util.Locale) getNumberInstance(inLocale)}.
298
- * @param inLocale the desired locale
299
- * @return the {@code NumberFormat} instance for general-purpose number&#xA; formatting
300
- */
301
- getInstance(inLocale: Locale): NumberFormat;
302
-
303
- /**
304
- * Returns a general-purpose number format for the current default
305
- * {@link java.util.Locale.Category#FORMAT FORMAT} locale.
306
- * <p>This is equivalent to calling
307
- * {@link #getNumberInstance(Locale)
308
- * getNumberInstance(Locale.getDefault(Locale.Category.FORMAT))}.
309
- * @return the {@code NumberFormat} instance for general-purpose number&#xA; formatting
310
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
311
- * @see java.util.Locale.Category#FORMAT
312
- */
313
- getNumberInstance(): NumberFormat;
314
-
315
- /**
316
- * Returns a general-purpose number format for the specified locale.
317
- * @param inLocale the desired locale
318
- * @return the {@code NumberFormat} instance for general-purpose number&#xA; formatting
319
- */
320
- getNumberInstance(inLocale: Locale): NumberFormat;
321
-
322
- /**
323
- * Returns an integer number format for the current default
324
- * {@link java.util.Locale.Category#FORMAT FORMAT} locale. The
325
- * returned number format is configured to round floating point numbers
326
- * to the nearest integer using half-even rounding (see {@link
327
- * java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}) for formatting,
328
- * and to parse only the integer part of an input string (see {@link
329
- * #isParseIntegerOnly isParseIntegerOnly}).
330
- * <p>This is equivalent to calling
331
- * {@link #getIntegerInstance(Locale)
332
- * getIntegerInstance(Locale.getDefault(Locale.Category.FORMAT))}.
333
- * @see #getRoundingMode()
334
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
335
- * @see java.util.Locale.Category#FORMAT
336
- * @return a number format for integer values
337
- * @since 1.4
338
- */
339
- getIntegerInstance(): NumberFormat;
340
-
341
- /**
342
- * Returns an integer number format for the specified locale. The
343
- * returned number format is configured to round floating point numbers
344
- * to the nearest integer using half-even rounding (see {@link
345
- * java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}) for formatting,
346
- * and to parse only the integer part of an input string (see {@link
347
- * #isParseIntegerOnly isParseIntegerOnly}).
348
- * @param inLocale the desired locale
349
- * @see #getRoundingMode()
350
- * @return a number format for integer values
351
- * @since 1.4
352
- */
353
- getIntegerInstance(inLocale: Locale): NumberFormat;
354
-
355
- /**
356
- * Returns a currency format for the current default
357
- * {@link java.util.Locale.Category#FORMAT FORMAT} locale.
358
- * <p>This is equivalent to calling
359
- * {@link #getCurrencyInstance(Locale)
360
- * getCurrencyInstance(Locale.getDefault(Locale.Category.FORMAT))}.
361
- * @return the {@code NumberFormat} instance for currency formatting
362
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
363
- * @see java.util.Locale.Category#FORMAT
364
- */
365
- getCurrencyInstance(): NumberFormat;
366
-
367
- /**
368
- * Returns a currency format for the specified locale.
369
- * @param inLocale the desired locale
370
- * @return the {@code NumberFormat} instance for currency formatting
371
- */
372
- getCurrencyInstance(inLocale: Locale): NumberFormat;
373
-
374
- /**
375
- * Returns a percentage format for the current default
376
- * {@link java.util.Locale.Category#FORMAT FORMAT} locale.
377
- * <p>This is equivalent to calling
378
- * {@link #getPercentInstance(Locale)
379
- * getPercentInstance(Locale.getDefault(Locale.Category.FORMAT))}.
380
- * @return the {@code NumberFormat} instance for percentage formatting
381
- * @see java.util.Locale#getDefault(java.util.Locale.Category)
382
- * @see java.util.Locale.Category#FORMAT
383
- */
384
- getPercentInstance(): NumberFormat;
385
-
386
- /**
387
- * Returns a percentage format for the specified locale.
388
- * @param inLocale the desired locale
389
- * @return the {@code NumberFormat} instance for percentage formatting
390
- */
391
- getPercentInstance(inLocale: Locale): NumberFormat;
392
-
393
- /**
394
- * Returns an array of all locales for which the
395
- * <code>get*Instance</code> methods of this class can return
396
- * localized instances.
397
- * The returned array represents the union of locales supported by the Java
398
- * runtime and by installed
399
- * {@link java.text.spi.NumberFormatProvider NumberFormatProvider} implementations.
400
- * It must contain at least a <code>Locale</code> instance equal to
401
- * {@link java.util.Locale#US Locale.US}.
402
- * @return An array of locales for which localized&#xA; <code>NumberFormat</code> instances are available.
403
- */
404
- getAvailableLocales(): Locale;
405
-
406
283
  /**
407
284
  * Overrides hashCode.
408
285
 
@@ -10,12 +10,6 @@ var _default = {
10
10
  parse: function parse() {},
11
11
  isParseIntegerOnly: function isParseIntegerOnly() {},
12
12
  setParseIntegerOnly: function setParseIntegerOnly() {},
13
- getInstance: function getInstance() {},
14
- getNumberInstance: function getNumberInstance() {},
15
- getIntegerInstance: function getIntegerInstance() {},
16
- getCurrencyInstance: function getCurrencyInstance() {},
17
- getPercentInstance: function getPercentInstance() {},
18
- getAvailableLocales: function getAvailableLocales() {},
19
13
  hashCode: function hashCode() {},
20
14
  equals: function equals() {},
21
15
  clone: function clone() {},
@@ -1,7 +1,6 @@
1
1
  import type { ZoneId } from "../ZoneId";
2
- import type { Duration } from "../Duration";
3
- import type { Instant } from "../Instant";
4
2
 
3
+ import type { Instant } from "../Instant";
5
4
  import type { Object } from "../../lang/Object";
6
5
 
7
6
  /**
@@ -43,166 +42,6 @@ import type { Object } from "../../lang/Object";
43
42
  * @since 1.8
44
43
  */
45
44
  export type Clock = Object & {
46
- /**
47
- * Obtains a clock that returns the current instant using the best available
48
- * system clock, converting to date and time using the UTC time-zone.
49
- * <p>
50
- * This clock, rather than {@link #systemDefaultZone()}, should be used when
51
- * you need the current instant without the date or time.
52
- * <p>
53
- * This clock is based on the best available system clock.
54
- * This may use {@link System#currentTimeMillis()}, or a higher resolution
55
- * clock if one is available.
56
- * <p>
57
- * Conversion from instant to date or time uses the {@linkplain ZoneOffset#UTC UTC time-zone}.
58
- * <p>
59
- * The returned implementation is immutable, thread-safe and {@code Serializable}.
60
- * It is equivalent to {@code system(ZoneOffset.UTC)}.
61
- * @return a clock that uses the best available system clock in the UTC zone, not null
62
- */
63
- systemUTC(): Clock;
64
-
65
- /**
66
- * Obtains a clock that returns the current instant using the best available
67
- * system clock, converting to date and time using the default time-zone.
68
- * <p>
69
- * This clock is based on the best available system clock.
70
- * This may use {@link System#currentTimeMillis()}, or a higher resolution
71
- * clock if one is available.
72
- * <p>
73
- * Using this method hard codes a dependency to the default time-zone into your application.
74
- * It is recommended to avoid this and use a specific time-zone whenever possible.
75
- * The {@link #systemUTC() UTC clock} should be used when you need the current instant
76
- * without the date or time.
77
- * <p>
78
- * The returned implementation is immutable, thread-safe and {@code Serializable}.
79
- * It is equivalent to {@code system(ZoneId.systemDefault())}.
80
- * @return a clock that uses the best available system clock in the default zone, not null
81
- * @see ZoneId#systemDefault()
82
- */
83
- systemDefaultZone(): Clock;
84
-
85
- /**
86
- * Obtains a clock that returns the current instant using best available
87
- * system clock.
88
- * <p>
89
- * This clock is based on the best available system clock.
90
- * This may use {@link System#currentTimeMillis()}, or a higher resolution
91
- * clock if one is available.
92
- * <p>
93
- * Conversion from instant to date or time uses the specified time-zone.
94
- * <p>
95
- * The returned implementation is immutable, thread-safe and {@code Serializable}.
96
- * @param zone the time-zone to use to convert the instant to date-time, not null
97
- * @return a clock that uses the best available system clock in the specified zone, not null
98
- */
99
- system(zone: ZoneId): Clock;
100
-
101
- /**
102
- * Obtains a clock that returns the current instant ticking in whole seconds
103
- * using best available system clock.
104
- * <p>
105
- * This clock will always have the nano-of-second field set to zero.
106
- * This ensures that the visible time ticks in whole seconds.
107
- * The underlying clock is the best available system clock, equivalent to
108
- * using {@link #system(ZoneId)}.
109
- * <p>
110
- * Implementations may use a caching strategy for performance reasons.
111
- * As such, it is possible that the start of the second observed via this
112
- * clock will be later than that observed directly via the underlying clock.
113
- * <p>
114
- * The returned implementation is immutable, thread-safe and {@code Serializable}.
115
- * It is equivalent to {@code tick(system(zone), Duration.ofSeconds(1))}.
116
- * @param zone the time-zone to use to convert the instant to date-time, not null
117
- * @return a clock that ticks in whole seconds using the specified zone, not null
118
- */
119
- tickSeconds(zone: ZoneId): Clock;
120
-
121
- /**
122
- * Obtains a clock that returns the current instant ticking in whole minutes
123
- * using best available system clock.
124
- * <p>
125
- * This clock will always have the nano-of-second and second-of-minute fields set to zero.
126
- * This ensures that the visible time ticks in whole minutes.
127
- * The underlying clock is the best available system clock, equivalent to
128
- * using {@link #system(ZoneId)}.
129
- * <p>
130
- * Implementations may use a caching strategy for performance reasons.
131
- * As such, it is possible that the start of the minute observed via this
132
- * clock will be later than that observed directly via the underlying clock.
133
- * <p>
134
- * The returned implementation is immutable, thread-safe and {@code Serializable}.
135
- * It is equivalent to {@code tick(system(zone), Duration.ofMinutes(1))}.
136
- * @param zone the time-zone to use to convert the instant to date-time, not null
137
- * @return a clock that ticks in whole minutes using the specified zone, not null
138
- */
139
- tickMinutes(zone: ZoneId): Clock;
140
-
141
- /**
142
- * Obtains a clock that returns instants from the specified clock truncated
143
- * to the nearest occurrence of the specified duration.
144
- * <p>
145
- * This clock will only tick as per the specified duration. Thus, if the duration
146
- * is half a second, the clock will return instants truncated to the half second.
147
- * <p>
148
- * The tick duration must be positive. If it has a part smaller than a whole
149
- * millisecond, then the whole duration must divide into one second without
150
- * leaving a remainder. All normal tick durations will match these criteria,
151
- * including any multiple of hours, minutes, seconds and milliseconds, and
152
- * sensible nanosecond durations, such as 20ns, 250,000ns and 500,000ns.
153
- * <p>
154
- * A duration of zero or one nanosecond would have no truncation effect.
155
- * Passing one of these will return the underlying clock.
156
- * <p>
157
- * Implementations may use a caching strategy for performance reasons.
158
- * As such, it is possible that the start of the requested duration observed
159
- * via this clock will be later than that observed directly via the underlying clock.
160
- * <p>
161
- * The returned implementation is immutable, thread-safe and {@code Serializable}
162
- * providing that the base clock is.
163
- * @param baseClock the base clock to base the ticking clock on, not null
164
- * @param tickDuration the duration of each visible tick, not negative, not null
165
- * @return a clock that ticks in whole units of the duration, not null
166
- * @throws IllegalArgumentException if the duration is negative, or has a&#xA; part smaller than a whole millisecond such that the whole duration is not&#xA; divisible into one second
167
- * @throws ArithmeticException if the duration is too large to be represented as nanos
168
- */
169
- tick(baseClock: Clock, tickDuration: Duration): Clock;
170
-
171
- /**
172
- * Obtains a clock that always returns the same instant.
173
- * <p>
174
- * This clock simply returns the specified instant.
175
- * As such, it is not a clock in the conventional sense.
176
- * The main use case for this is in testing, where the fixed clock ensures
177
- * tests are not dependent on the current clock.
178
- * <p>
179
- * The returned implementation is immutable, thread-safe and {@code Serializable}.
180
- * @param fixedInstant the instant to use as the clock, not null
181
- * @param zone the time-zone to use to convert the instant to date-time, not null
182
- * @return a clock that always returns the same instant, not null
183
- */
184
- fixed(fixedInstant: Instant, zone: ZoneId): Clock;
185
-
186
- /**
187
- * Obtains a clock that returns instants from the specified clock with the
188
- * specified duration added
189
- * <p>
190
- * This clock wraps another clock, returning instants that are later by the
191
- * specified duration. If the duration is negative, the instants will be
192
- * earlier than the current date and time.
193
- * The main use case for this is to simulate running in the future or in the past.
194
- * <p>
195
- * A duration of zero would have no offsetting effect.
196
- * Passing zero will return the underlying clock.
197
- * <p>
198
- * The returned implementation is immutable, thread-safe and {@code Serializable}
199
- * providing that the base clock is.
200
- * @param baseClock the base clock to add the duration to, not null
201
- * @param offsetDuration the duration to add, not null
202
- * @return a clock based on the base clock with the duration added, not null
203
- */
204
- offset(baseClock: Clock, offsetDuration: Duration): Clock;
205
-
206
45
  /**
207
46
  * Gets the time-zone being used to create dates and times.
208
47
  * <p>