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

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 (147) hide show
  1. package/package.json +1 -1
  2. package/server/ArraysInstance/index.d.ts +1 -1
  3. package/server/CollectionsInstance/index.d.ts +1 -1
  4. package/server/NodeTypeUtil/index.d.ts +1 -1
  5. package/server/PermissionUtil/index.d.ts +3 -3
  6. package/server/Properties/index.d.ts +7 -4
  7. package/server/TagUtil/index.d.ts +1 -1
  8. package/types/java/io/File/index.d.ts +0 -120
  9. package/types/java/io/File/index.js +0 -2
  10. package/types/java/io/PrintStream/index.d.ts +4 -4
  11. package/types/java/io/PrintWriter/index.d.ts +4 -4
  12. package/types/java/lang/Boolean/index.d.ts +0 -123
  13. package/types/java/lang/Boolean/index.js +1 -8
  14. package/types/java/lang/Class/index.d.ts +9 -97
  15. package/types/java/lang/Class/index.js +0 -1
  16. package/types/java/lang/ClassLoader/index.d.ts +0 -91
  17. package/types/java/lang/ClassLoader/index.js +0 -5
  18. package/types/java/lang/Double/index.d.ts +0 -541
  19. package/types/java/lang/Double/index.js +2 -13
  20. package/types/java/lang/Enum/index.d.ts +0 -23
  21. package/types/java/lang/Enum/index.js +0 -1
  22. package/types/java/lang/Float/index.d.ts +0 -494
  23. package/types/java/lang/Float/index.js +2 -13
  24. package/types/java/lang/Integer/index.d.ts +0 -780
  25. package/types/java/lang/Integer/index.js +2 -29
  26. package/types/java/lang/Long/index.d.ts +0 -788
  27. package/types/java/lang/Long/index.js +2 -28
  28. package/types/java/lang/Package/index.d.ts +0 -28
  29. package/types/java/lang/Package/index.js +0 -2
  30. package/types/java/lang/String/index.d.ts +0 -193
  31. package/types/java/lang/String/index.js +0 -4
  32. package/types/java/lang/reflect/AccessibleObject/index.d.ts +0 -25
  33. package/types/java/lang/reflect/Constructor/index.d.ts +1 -1
  34. package/types/java/lang/reflect/Method/index.d.ts +1 -1
  35. package/types/java/math/BigDecimal/index.d.ts +1 -40
  36. package/types/java/math/BigDecimal/index.js +0 -1
  37. package/types/java/math/BigInteger/index.d.ts +0 -25
  38. package/types/java/math/BigInteger/index.js +0 -2
  39. package/types/java/net/InetAddress/index.d.ts +0 -134
  40. package/types/java/net/InetAddress/index.js +1 -6
  41. package/types/java/net/NetworkInterface/index.d.ts +0 -50
  42. package/types/java/net/NetworkInterface/index.js +0 -4
  43. package/types/java/net/URI/index.d.ts +0 -22
  44. package/types/java/net/URI/index.js +0 -1
  45. package/types/java/net/URL/index.d.ts +0 -23
  46. package/types/java/net/URL/index.js +1 -2
  47. package/types/java/net/URLConnection/index.d.ts +0 -125
  48. package/types/java/net/URLConnection/index.js +1 -10
  49. package/types/java/nio/channels/AsynchronousFileChannel/index.d.ts +0 -136
  50. package/types/java/nio/channels/AsynchronousFileChannel/index.js +0 -1
  51. package/types/java/nio/channels/FileChannel/index.d.ts +0 -128
  52. package/types/java/nio/channels/FileChannel/index.js +0 -1
  53. package/types/java/nio/charset/Charset/index.d.ts +1 -58
  54. package/types/java/nio/charset/Charset/index.js +0 -4
  55. package/types/java/nio/file/FileSystem/index.d.ts +1 -1
  56. package/types/java/nio/file/Path/index.d.ts +3 -3
  57. package/types/java/nio/file/Watchable/index.d.ts +2 -2
  58. package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +18 -26
  59. package/types/java/nio/file/spi/FileSystemProvider/index.js +0 -1
  60. package/types/java/text/DateFormat/index.d.ts +0 -130
  61. package/types/java/text/DateFormat/index.js +0 -5
  62. package/types/java/text/DateFormatSymbols/index.d.ts +7 -52
  63. package/types/java/text/DateFormatSymbols/index.js +0 -2
  64. package/types/java/text/NumberFormat/index.d.ts +0 -123
  65. package/types/java/text/NumberFormat/index.js +0 -6
  66. package/types/java/time/Clock/index.d.ts +1 -162
  67. package/types/java/time/Clock/index.js +0 -8
  68. package/types/java/time/Duration/index.d.ts +3 -193
  69. package/types/java/time/Duration/index.js +0 -10
  70. package/types/java/time/Instant/index.d.ts +0 -101
  71. package/types/java/time/Instant/index.js +0 -5
  72. package/types/java/time/LocalDate/index.d.ts +4 -134
  73. package/types/java/time/LocalDate/index.js +0 -6
  74. package/types/java/time/LocalDateTime/index.d.ts +7 -285
  75. package/types/java/time/LocalDateTime/index.js +0 -6
  76. package/types/java/time/LocalTime/index.d.ts +2 -146
  77. package/types/java/time/LocalTime/index.js +0 -6
  78. package/types/java/time/OffsetDateTime/index.d.ts +7 -177
  79. package/types/java/time/OffsetDateTime/index.js +0 -6
  80. package/types/java/time/OffsetTime/index.d.ts +3 -141
  81. package/types/java/time/OffsetTime/index.js +0 -5
  82. package/types/java/time/Period/index.d.ts +1 -135
  83. package/types/java/time/Period/index.js +0 -8
  84. package/types/java/time/ZoneId/index.d.ts +1 -121
  85. package/types/java/time/ZoneId/index.js +0 -5
  86. package/types/java/time/ZoneOffset/index.d.ts +1 -104
  87. package/types/java/time/ZoneOffset/index.js +0 -6
  88. package/types/java/time/ZonedDateTime/index.d.ts +6 -284
  89. package/types/java/time/ZonedDateTime/index.js +0 -7
  90. package/types/java/time/format/DateTimeFormatter/index.d.ts +4 -217
  91. package/types/java/time/format/DateTimeFormatter/index.js +0 -6
  92. package/types/java/time/format/DecimalStyle/index.d.ts +0 -34
  93. package/types/java/time/format/DecimalStyle/index.js +0 -3
  94. package/types/java/time/temporal/ValueRange/index.d.ts +0 -43
  95. package/types/java/time/temporal/ValueRange/index.js +0 -1
  96. package/types/java/time/zone/ZoneOffsetTransition/index.d.ts +2 -19
  97. package/types/java/time/zone/ZoneOffsetTransition/index.js +0 -1
  98. package/types/java/time/zone/ZoneRules/index.d.ts +2 -28
  99. package/types/java/time/zone/ZoneRules/index.js +0 -1
  100. package/types/java/util/Calendar/index.d.ts +2 -67
  101. package/types/java/util/Calendar/index.js +0 -3
  102. package/types/java/util/Comparator/index.d.ts +16 -16
  103. package/types/java/util/Currency/index.d.ts +0 -38
  104. package/types/java/util/Currency/index.js +0 -2
  105. package/types/java/util/Date/index.d.ts +0 -160
  106. package/types/java/util/Date/index.js +0 -3
  107. package/types/java/util/Locale/index.d.ts +0 -344
  108. package/types/java/util/Locale/index.js +1 -11
  109. package/types/java/util/Optional/index.d.ts +0 -27
  110. package/types/java/util/Optional/index.js +0 -3
  111. package/types/java/util/OptionalDouble/index.d.ts +0 -15
  112. package/types/java/util/OptionalDouble/index.js +0 -2
  113. package/types/java/util/OptionalInt/index.d.ts +0 -15
  114. package/types/java/util/OptionalInt/index.js +0 -2
  115. package/types/java/util/OptionalLong/index.d.ts +0 -15
  116. package/types/java/util/OptionalLong/index.js +0 -2
  117. package/types/java/util/TimeZone/index.d.ts +0 -65
  118. package/types/java/util/TimeZone/index.js +0 -4
  119. package/types/java/util/stream/Collector/index.d.ts +2 -2
  120. package/types/java/util/stream/DoubleStream/index.d.ts +1 -1
  121. package/types/java/util/stream/IntStream/index.d.ts +1 -1
  122. package/types/java/util/stream/LongStream/index.d.ts +1 -1
  123. package/types/java/util/stream/Stream/index.d.ts +1 -1
  124. package/types/javax/jcr/PropertyType/index.d.ts +2 -18
  125. package/types/javax/jcr/PropertyType/index.js +1 -4
  126. package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +1 -1
  127. package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +1 -1
  128. package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +2 -2
  129. package/types/javax/jcr/observation/ObservationManager/index.d.ts +4 -4
  130. package/types/javax/jcr/version/OnParentVersionAction/index.d.ts +2 -19
  131. package/types/javax/jcr/version/OnParentVersionAction/index.js +1 -4
  132. package/types/java/net/ContentHandler/index.d.ts +0 -70
  133. package/types/java/net/ContentHandler/index.js +0 -10
  134. package/types/java/net/ContentHandlerFactory/index.d.ts +0 -26
  135. package/types/java/net/ContentHandlerFactory/index.js +0 -10
  136. package/types/java/net/FileNameMap/index.d.ts +0 -16
  137. package/types/java/net/FileNameMap/index.js +0 -10
  138. package/types/java/net/URLStreamHandler/index.d.ts +0 -199
  139. package/types/java/net/URLStreamHandler/index.js +0 -19
  140. package/types/java/net/URLStreamHandlerFactory/index.d.ts +0 -24
  141. package/types/java/net/URLStreamHandlerFactory/index.js +0 -10
  142. package/types/java/time/format/FormatStyle/index.d.ts +0 -14
  143. package/types/java/time/format/FormatStyle/index.js +0 -13
  144. package/types/java/util/Locale.Category/index.d.ts +0 -12
  145. package/types/java/util/Locale.Category/index.js +0 -11
  146. package/types/java/util/Locale.FilteringMode/index.d.ts +0 -97
  147. package/types/java/util/Locale.FilteringMode/index.js +0 -14
@@ -1,26 +1,21 @@
1
- import type { ZoneId } from "../ZoneId";
2
- import type { Clock } from "../Clock";
3
- import type { LocalDate } from "../LocalDate";
4
- import type { LocalTime } from "../LocalTime";
5
- import type { LocalDateTime } from "../LocalDateTime";
6
-
7
- import type { ZoneOffset } from "../ZoneOffset";
8
- import type { Instant } from "../Instant";
9
- import type { TemporalAccessor } from "../temporal/TemporalAccessor";
10
- import type { CharSequence } from "../../lang/CharSequence";
11
- import type { DateTimeFormatter } from "../format/DateTimeFormatter";
12
1
  import type { TemporalField } from "../temporal/TemporalField";
13
2
 
14
3
  import type { TemporalUnit } from "../temporal/TemporalUnit";
15
4
  import type { ValueRange } from "../temporal/ValueRange";
16
5
 
6
+ import type { ZoneOffset } from "../ZoneOffset";
7
+ import type { ZoneId } from "../ZoneId";
8
+ import type { LocalDateTime } from "../LocalDateTime";
9
+ import type { LocalDate } from "../LocalDate";
17
10
  import type { Month } from "../Month";
18
11
  import type { DayOfWeek } from "../DayOfWeek";
12
+ import type { LocalTime } from "../LocalTime";
19
13
  import type { TemporalAdjuster } from "../temporal/TemporalAdjuster";
20
14
  import type { TemporalAmount } from "../temporal/TemporalAmount";
21
15
  import type { TemporalQuery } from "../temporal/TemporalQuery";
22
16
 
23
17
  import type { Temporal } from "../temporal/Temporal";
18
+ import type { DateTimeFormatter } from "../format/DateTimeFormatter";
24
19
  import type { String } from "../../lang/String";
25
20
  import type { OffsetDateTime } from "../OffsetDateTime";
26
21
  import type { Object } from "../../lang/Object";
@@ -92,279 +87,6 @@ export type ZonedDateTime = Object &
92
87
  Temporal &
93
88
  ChronoZonedDateTime &
94
89
  Serializable & {
95
- /**
96
- * Obtains the current date-time from the system clock in the default time-zone.
97
- * <p>
98
- * This will query the {@link Clock#systemDefaultZone() system clock} in the default
99
- * time-zone to obtain the current date-time.
100
- * The zone and offset will be set based on the time-zone in the clock.
101
- * <p>
102
- * Using this method will prevent the ability to use an alternate clock for testing
103
- * because the clock is hard-coded.
104
- * @return the current date-time using the system clock, not null
105
- */
106
- now(): ZonedDateTime;
107
-
108
- /**
109
- * Obtains the current date-time from the system clock in the specified time-zone.
110
- * <p>
111
- * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date-time.
112
- * Specifying the time-zone avoids dependence on the default time-zone.
113
- * The offset will be calculated from the specified time-zone.
114
- * <p>
115
- * Using this method will prevent the ability to use an alternate clock for testing
116
- * because the clock is hard-coded.
117
- * @param zone the zone ID to use, not null
118
- * @return the current date-time using the system clock, not null
119
- */
120
- now(zone: ZoneId): ZonedDateTime;
121
-
122
- /**
123
- * Obtains the current date-time from the specified clock.
124
- * <p>
125
- * This will query the specified clock to obtain the current date-time.
126
- * The zone and offset will be set based on the time-zone in the clock.
127
- * <p>
128
- * Using this method allows the use of an alternate clock for testing.
129
- * The alternate clock may be introduced using {@link Clock dependency injection}.
130
- * @param clock the clock to use, not null
131
- * @return the current date-time, not null
132
- */
133
- now(clock: Clock): ZonedDateTime;
134
-
135
- /**
136
- * Obtains an instance of {@code ZonedDateTime} from a local date and time.
137
- * <p>
138
- * This creates a zoned date-time matching the input local date and time as closely as possible.
139
- * Time-zone rules, such as daylight savings, mean that not every local date-time
140
- * is valid for the specified zone, thus the local date-time may be adjusted.
141
- * <p>
142
- * The local date time and first combined to form a local date-time.
143
- * The local date-time is then resolved to a single instant on the time-line.
144
- * This is achieved by finding a valid offset from UTC/Greenwich for the local
145
- * date-time as defined by the {@link ZoneRules rules} of the zone ID.
146
- * <p>
147
- * In most cases, there is only one valid offset for a local date-time.
148
- * In the case of an overlap, when clocks are set back, there are two valid offsets.
149
- * This method uses the earlier offset typically corresponding to "summer".
150
- * <p>
151
- * In the case of a gap, when clocks jump forward, there is no valid offset.
152
- * Instead, the local date-time is adjusted to be later by the length of the gap.
153
- * For a typical one hour daylight savings change, the local date-time will be
154
- * moved one hour later into the offset typically corresponding to "summer".
155
- * @param date the local date, not null
156
- * @param time the local time, not null
157
- * @param zone the time-zone, not null
158
- * @return the offset date-time, not null
159
- */
160
- of(date: LocalDate, time: LocalTime, zone: ZoneId): ZonedDateTime;
161
-
162
- /**
163
- * Obtains an instance of {@code ZonedDateTime} from a local date-time.
164
- * <p>
165
- * This creates a zoned date-time matching the input local date-time as closely as possible.
166
- * Time-zone rules, such as daylight savings, mean that not every local date-time
167
- * is valid for the specified zone, thus the local date-time may be adjusted.
168
- * <p>
169
- * The local date-time is resolved to a single instant on the time-line.
170
- * This is achieved by finding a valid offset from UTC/Greenwich for the local
171
- * date-time as defined by the {@link ZoneRules rules} of the zone ID.
172
- * <p>
173
- * In most cases, there is only one valid offset for a local date-time.
174
- * In the case of an overlap, when clocks are set back, there are two valid offsets.
175
- * This method uses the earlier offset typically corresponding to "summer".
176
- * <p>
177
- * In the case of a gap, when clocks jump forward, there is no valid offset.
178
- * Instead, the local date-time is adjusted to be later by the length of the gap.
179
- * For a typical one hour daylight savings change, the local date-time will be
180
- * moved one hour later into the offset typically corresponding to "summer".
181
- * @param localDateTime the local date-time, not null
182
- * @param zone the time-zone, not null
183
- * @return the zoned date-time, not null
184
- */
185
- of(localDateTime: LocalDateTime, zone: ZoneId): ZonedDateTime;
186
-
187
- /**
188
- * Obtains an instance of {@code ZonedDateTime} from a year, month, day,
189
- * hour, minute, second, nanosecond and time-zone.
190
- * <p>
191
- * This creates a zoned date-time matching the local date-time of the seven
192
- * specified fields as closely as possible.
193
- * Time-zone rules, such as daylight savings, mean that not every local date-time
194
- * is valid for the specified zone, thus the local date-time may be adjusted.
195
- * <p>
196
- * The local date-time is resolved to a single instant on the time-line.
197
- * This is achieved by finding a valid offset from UTC/Greenwich for the local
198
- * date-time as defined by the {@link ZoneRules rules} of the zone ID.
199
- * <p>
200
- * In most cases, there is only one valid offset for a local date-time.
201
- * In the case of an overlap, when clocks are set back, there are two valid offsets.
202
- * This method uses the earlier offset typically corresponding to "summer".
203
- * <p>
204
- * In the case of a gap, when clocks jump forward, there is no valid offset.
205
- * Instead, the local date-time is adjusted to be later by the length of the gap.
206
- * For a typical one hour daylight savings change, the local date-time will be
207
- * moved one hour later into the offset typically corresponding to "summer".
208
- * <p>
209
- * This method exists primarily for writing test cases.
210
- * Non test-code will typically use other methods to create an offset time.
211
- * {@code LocalDateTime} has five additional convenience variants of the
212
- * equivalent factory method taking fewer arguments.
213
- * They are not provided here to reduce the footprint of the API.
214
- * @param year the year to represent, from MIN_YEAR to MAX_YEAR
215
- * @param month the month-of-year to represent, from 1 (January) to 12 (December)
216
- * @param dayOfMonth the day-of-month to represent, from 1 to 31
217
- * @param hour the hour-of-day to represent, from 0 to 23
218
- * @param minute the minute-of-hour to represent, from 0 to 59
219
- * @param second the second-of-minute to represent, from 0 to 59
220
- * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
221
- * @param zone the time-zone, not null
222
- * @return the offset date-time, not null
223
- * @throws DateTimeException if the value of any field is out of range, or&#xA; if the day-of-month is invalid for the month-year
224
- */
225
- of(
226
- year: number,
227
- month: number,
228
- dayOfMonth: number,
229
- hour: number,
230
- minute: number,
231
- second: number,
232
- nanoOfSecond: number,
233
- zone: ZoneId
234
- ): ZonedDateTime;
235
-
236
- /**
237
- * Obtains an instance of {@code ZonedDateTime} from a local date-time
238
- * using the preferred offset if possible.
239
- * <p>
240
- * The local date-time is resolved to a single instant on the time-line.
241
- * This is achieved by finding a valid offset from UTC/Greenwich for the local
242
- * date-time as defined by the {@link ZoneRules rules} of the zone ID.
243
- * <p>
244
- * In most cases, there is only one valid offset for a local date-time.
245
- * In the case of an overlap, where clocks are set back, there are two valid offsets.
246
- * If the preferred offset is one of the valid offsets then it is used.
247
- * Otherwise the earlier valid offset is used, typically corresponding to "summer".
248
- * <p>
249
- * In the case of a gap, where clocks jump forward, there is no valid offset.
250
- * Instead, the local date-time is adjusted to be later by the length of the gap.
251
- * For a typical one hour daylight savings change, the local date-time will be
252
- * moved one hour later into the offset typically corresponding to "summer".
253
- * @param localDateTime the local date-time, not null
254
- * @param zone the time-zone, not null
255
- * @param preferredOffset the zone offset, null if no preference
256
- * @return the zoned date-time, not null
257
- */
258
- ofLocal(
259
- localDateTime: LocalDateTime,
260
- zone: ZoneId,
261
- preferredOffset: ZoneOffset
262
- ): ZonedDateTime;
263
-
264
- /**
265
- * Obtains an instance of {@code ZonedDateTime} from an {@code Instant}.
266
- * <p>
267
- * This creates a zoned date-time with the same instant as that specified.
268
- * Calling {@link #toInstant()} will return an instant equal to the one used here.
269
- * <p>
270
- * Converting an instant to a zoned date-time is simple as there is only one valid
271
- * offset for each instant.
272
- * @param instant the instant to create the date-time from, not null
273
- * @param zone the time-zone, not null
274
- * @return the zoned date-time, not null
275
- * @throws DateTimeException if the result exceeds the supported range
276
- */
277
- ofInstant(instant: Instant, zone: ZoneId): ZonedDateTime;
278
-
279
- /**
280
- * Obtains an instance of {@code ZonedDateTime} from the instant formed by combining
281
- * the local date-time and offset.
282
- * <p>
283
- * This creates a zoned date-time by {@link LocalDateTime#toInstant(ZoneOffset) combining}
284
- * the {@code LocalDateTime} and {@code ZoneOffset}.
285
- * This combination uniquely specifies an instant without ambiguity.
286
- * <p>
287
- * Converting an instant to a zoned date-time is simple as there is only one valid
288
- * offset for each instant. If the valid offset is different to the offset specified,
289
- * then the date-time and offset of the zoned date-time will differ from those specified.
290
- * <p>
291
- * If the {@code ZoneId} to be used is a {@code ZoneOffset}, this method is equivalent
292
- * to {@link #of(LocalDateTime, ZoneId)}.
293
- * @param localDateTime the local date-time, not null
294
- * @param offset the zone offset, not null
295
- * @param zone the time-zone, not null
296
- * @return the zoned date-time, not null
297
- */
298
- ofInstant(
299
- localDateTime: LocalDateTime,
300
- offset: ZoneOffset,
301
- zone: ZoneId
302
- ): ZonedDateTime;
303
-
304
- /**
305
- * Obtains an instance of {@code ZonedDateTime} strictly validating the
306
- * combination of local date-time, offset and zone ID.
307
- * <p>
308
- * This creates a zoned date-time ensuring that the offset is valid for the
309
- * local date-time according to the rules of the specified zone.
310
- * If the offset is invalid, an exception is thrown.
311
- * @param localDateTime the local date-time, not null
312
- * @param offset the zone offset, not null
313
- * @param zone the time-zone, not null
314
- * @return the zoned date-time, not null
315
- */
316
- ofStrict(
317
- localDateTime: LocalDateTime,
318
- offset: ZoneOffset,
319
- zone: ZoneId
320
- ): ZonedDateTime;
321
-
322
- /**
323
- * Obtains an instance of {@code ZonedDateTime} from a temporal object.
324
- * <p>
325
- * This obtains a zoned date-time based on the specified temporal.
326
- * A {@code TemporalAccessor} represents an arbitrary set of date and time information,
327
- * which this factory converts to an instance of {@code ZonedDateTime}.
328
- * <p>
329
- * The conversion will first obtain a {@code ZoneId} from the temporal object,
330
- * falling back to a {@code ZoneOffset} if necessary. It will then try to obtain
331
- * an {@code Instant}, falling back to a {@code LocalDateTime} if necessary.
332
- * The result will be either the combination of {@code ZoneId} or {@code ZoneOffset}
333
- * with {@code Instant} or {@code LocalDateTime}.
334
- * Implementations are permitted to perform optimizations such as accessing
335
- * those fields that are equivalent to the relevant objects.
336
- * <p>
337
- * This method matches the signature of the functional interface {@link TemporalQuery}
338
- * allowing it to be used as a query via method reference, {@code ZonedDateTime::from}.
339
- * @param temporal the temporal object to convert, not null
340
- * @return the zoned date-time, not null
341
- * @throws DateTimeException if unable to convert to an {@code ZonedDateTime}
342
- */
343
- from(temporal: TemporalAccessor): ZonedDateTime;
344
-
345
- /**
346
- * Obtains an instance of {@code ZonedDateTime} from a text string such as
347
- * {@code 2007-12-03T10:15:30+01:00[Europe/Paris]}.
348
- * <p>
349
- * The string must represent a valid date-time and is parsed using
350
- * {@link java.time.format.DateTimeFormatter#ISO_ZONED_DATE_TIME}.
351
- * @param text the text to parse such as "2007-12-03T10:15:30+01:00[Europe/Paris]", not null
352
- * @return the parsed zoned date-time, not null
353
- * @throws DateTimeParseException if the text cannot be parsed
354
- */
355
- parse(text: CharSequence): ZonedDateTime;
356
-
357
- /**
358
- * Obtains an instance of {@code ZonedDateTime} from a text string using a specific formatter.
359
- * <p>
360
- * The text is parsed using the formatter, returning a date-time.
361
- * @param text the text to parse, not null
362
- * @param formatter the formatter to use, not null
363
- * @return the parsed zoned date-time, not null
364
- * @throws DateTimeParseException if the text cannot be parsed
365
- */
366
- parse(text: CharSequence, formatter: DateTimeFormatter): ZonedDateTime;
367
-
368
90
  /**
369
91
  * Checks if the specified field is supported.
370
92
  * <p>
@@ -5,13 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- now: function now() {},
9
- of: function of() {},
10
- ofLocal: function ofLocal() {},
11
- ofInstant: function ofInstant() {},
12
- ofStrict: function ofStrict() {},
13
- from: function from() {},
14
- parse: function parse() {},
15
8
  isSupported: function isSupported() {},
16
9
  range: function range() {},
17
10
  get: function get() {},
@@ -1,7 +1,4 @@
1
- import type { String } from "../../../lang/String";
2
1
  import type { Locale } from "../../../util/Locale";
3
- import type { FormatStyle } from "../FormatStyle";
4
- import type { TemporalQuery } from "../../temporal/TemporalQuery";
5
2
  import type { DecimalStyle } from "../DecimalStyle";
6
3
  import type { Chronology } from "../../chrono/Chronology";
7
4
  import type { ZoneId } from "../../ZoneId";
@@ -9,10 +6,12 @@ import type { ResolverStyle } from "../ResolverStyle";
9
6
  import type { Set } from "../../../util/Set";
10
7
  import type { TemporalField } from "../../temporal/TemporalField";
11
8
  import type { TemporalAccessor } from "../../temporal/TemporalAccessor";
9
+ import type { String } from "../../../lang/String";
12
10
  import type { Appendable } from "../../../lang/Appendable";
13
11
 
14
12
  import type { CharSequence } from "../../../lang/CharSequence";
15
13
  import type { ParsePosition } from "../../../text/ParsePosition";
14
+ import type { TemporalQuery } from "../../temporal/TemporalQuery";
16
15
 
17
16
  import type { Format } from "../../../text/Format";
18
17
  import type { Object } from "../../../lang/Object";
@@ -398,218 +397,6 @@ import type { Object } from "../../../lang/Object";
398
397
  * @since 1.8
399
398
  */
400
399
  export type DateTimeFormatter = Object & {
401
- /**
402
- * Creates a formatter using the specified pattern.
403
- * <p>
404
- * This method will create a formatter based on a simple
405
- * <a href="#patterns">pattern of letters and symbols</a>
406
- * as described in the class documentation.
407
- * For example, {@code d MMM uuuu} will format 2011-12-03 as '3 Dec 2011'.
408
- * <p>
409
- * The formatter will use the {@link Locale#getDefault(Locale.Category) default FORMAT locale}.
410
- * This can be changed using {@link DateTimeFormatter#withLocale(Locale)} on the returned formatter
411
- * Alternatively use the {@link #ofPattern(String, Locale)} variant of this method.
412
- * <p>
413
- * The returned formatter has no override chronology or zone.
414
- * It uses {@link ResolverStyle#SMART SMART} resolver style.
415
- * @param pattern the pattern to use, not null
416
- * @return the formatter based on the pattern, not null
417
- * @throws IllegalArgumentException if the pattern is invalid
418
- * @see DateTimeFormatterBuilder#appendPattern(String)
419
- */
420
- ofPattern(pattern: String | string): DateTimeFormatter;
421
-
422
- /**
423
- * Creates a formatter using the specified pattern and locale.
424
- * <p>
425
- * This method will create a formatter based on a simple
426
- * <a href="#patterns">pattern of letters and symbols</a>
427
- * as described in the class documentation.
428
- * For example, {@code d MMM uuuu} will format 2011-12-03 as '3 Dec 2011'.
429
- * <p>
430
- * The formatter will use the specified locale.
431
- * This can be changed using {@link DateTimeFormatter#withLocale(Locale)} on the returned formatter
432
- * <p>
433
- * The returned formatter has no override chronology or zone.
434
- * It uses {@link ResolverStyle#SMART SMART} resolver style.
435
- * @param pattern the pattern to use, not null
436
- * @param locale the locale to use, not null
437
- * @return the formatter based on the pattern, not null
438
- * @throws IllegalArgumentException if the pattern is invalid
439
- * @see DateTimeFormatterBuilder#appendPattern(String)
440
- */
441
- ofPattern(pattern: String | string, locale: Locale): DateTimeFormatter;
442
-
443
- /**
444
- * Returns a locale specific date format for the ISO chronology.
445
- * <p>
446
- * This returns a formatter that will format or parse a date.
447
- * The exact format pattern used varies by locale.
448
- * <p>
449
- * The locale is determined from the formatter. The formatter returned directly by
450
- * this method will use the {@link Locale#getDefault(Locale.Category) default FORMAT locale}.
451
- * The locale can be controlled using {@link DateTimeFormatter#withLocale(Locale) withLocale(Locale)}
452
- * on the result of this method.
453
- * <p>
454
- * Note that the localized pattern is looked up lazily.
455
- * This {@code DateTimeFormatter} holds the style required and the locale,
456
- * looking up the pattern required on demand.
457
- * <p>
458
- * The returned formatter has a chronology of ISO set to ensure dates in
459
- * other calendar systems are correctly converted.
460
- * It has no override zone and uses the {@link ResolverStyle#SMART SMART} resolver style.
461
- * @param dateStyle the formatter style to obtain, not null
462
- * @return the date formatter, not null
463
- */
464
- ofLocalizedDate(dateStyle: FormatStyle): DateTimeFormatter;
465
-
466
- /**
467
- * Returns a locale specific time format for the ISO chronology.
468
- * <p>
469
- * This returns a formatter that will format or parse a time.
470
- * The exact format pattern used varies by locale.
471
- * <p>
472
- * The locale is determined from the formatter. The formatter returned directly by
473
- * this method will use the {@link Locale#getDefault(Locale.Category) default FORMAT locale}.
474
- * The locale can be controlled using {@link DateTimeFormatter#withLocale(Locale) withLocale(Locale)}
475
- * on the result of this method.
476
- * <p>
477
- * Note that the localized pattern is looked up lazily.
478
- * This {@code DateTimeFormatter} holds the style required and the locale,
479
- * looking up the pattern required on demand.
480
- * <p>
481
- * The returned formatter has a chronology of ISO set to ensure dates in
482
- * other calendar systems are correctly converted.
483
- * It has no override zone and uses the {@link ResolverStyle#SMART SMART} resolver style.
484
- * @param timeStyle the formatter style to obtain, not null
485
- * @return the time formatter, not null
486
- */
487
- ofLocalizedTime(timeStyle: FormatStyle): DateTimeFormatter;
488
-
489
- /**
490
- * Returns a locale specific date-time formatter for the ISO chronology.
491
- * <p>
492
- * This returns a formatter that will format or parse a date-time.
493
- * The exact format pattern used varies by locale.
494
- * <p>
495
- * The locale is determined from the formatter. The formatter returned directly by
496
- * this method will use the {@link Locale#getDefault(Locale.Category) default FORMAT locale}.
497
- * The locale can be controlled using {@link DateTimeFormatter#withLocale(Locale) withLocale(Locale)}
498
- * on the result of this method.
499
- * <p>
500
- * Note that the localized pattern is looked up lazily.
501
- * This {@code DateTimeFormatter} holds the style required and the locale,
502
- * looking up the pattern required on demand.
503
- * <p>
504
- * The returned formatter has a chronology of ISO set to ensure dates in
505
- * other calendar systems are correctly converted.
506
- * It has no override zone and uses the {@link ResolverStyle#SMART SMART} resolver style.
507
- * @param dateTimeStyle the formatter style to obtain, not null
508
- * @return the date-time formatter, not null
509
- */
510
- ofLocalizedDateTime(dateTimeStyle: FormatStyle): DateTimeFormatter;
511
-
512
- /**
513
- * Returns a locale specific date and time format for the ISO chronology.
514
- * <p>
515
- * This returns a formatter that will format or parse a date-time.
516
- * The exact format pattern used varies by locale.
517
- * <p>
518
- * The locale is determined from the formatter. The formatter returned directly by
519
- * this method will use the {@link Locale#getDefault() default FORMAT locale}.
520
- * The locale can be controlled using {@link DateTimeFormatter#withLocale(Locale) withLocale(Locale)}
521
- * on the result of this method.
522
- * <p>
523
- * Note that the localized pattern is looked up lazily.
524
- * This {@code DateTimeFormatter} holds the style required and the locale,
525
- * looking up the pattern required on demand.
526
- * <p>
527
- * The returned formatter has a chronology of ISO set to ensure dates in
528
- * other calendar systems are correctly converted.
529
- * It has no override zone and uses the {@link ResolverStyle#SMART SMART} resolver style.
530
- * @param dateStyle the date formatter style to obtain, not null
531
- * @param timeStyle the time formatter style to obtain, not null
532
- * @return the date, time or date-time formatter, not null
533
- */
534
- ofLocalizedDateTime(
535
- dateStyle: FormatStyle,
536
- timeStyle: FormatStyle
537
- ): DateTimeFormatter;
538
-
539
- /**
540
- * A query that provides access to the excess days that were parsed.
541
- * <p>
542
- * This returns a singleton {@linkplain TemporalQuery query} that provides
543
- * access to additional information from the parse. The query always returns
544
- * a non-null period, with a zero period returned instead of null.
545
- * <p>
546
- * There are two situations where this query may return a non-zero period.
547
- * <ul>
548
- * <li>If the {@code ResolverStyle} is {@code LENIENT} and a time is parsed
549
- * without a date, then the complete result of the parse consists of a
550
- * {@code LocalTime} and an excess {@code Period} in days.
551
- *
552
- * <li>If the {@code ResolverStyle} is {@code SMART} and a time is parsed
553
- * without a date where the time is 24:00:00, then the complete result of
554
- * the parse consists of a {@code LocalTime} of 00:00:00 and an excess
555
- * {@code Period} of one day.
556
- * </ul>
557
- * <p>
558
- * In both cases, if a complete {@code ChronoLocalDateTime} or {@code Instant}
559
- * is parsed, then the excess days are added to the date part.
560
- * As a result, this query will return a zero period.
561
- * <p>
562
- * The {@code SMART} behaviour handles the common "end of day" 24:00 value.
563
- * Processing in {@code LENIENT} mode also produces the same result:
564
- * <pre>
565
- * Text to parse Parsed object Excess days
566
- * "2012-12-03T00:00" LocalDateTime.of(2012, 12, 3, 0, 0) ZERO
567
- * "2012-12-03T24:00" LocalDateTime.of(2012, 12, 4, 0, 0) ZERO
568
- * "00:00" LocalTime.of(0, 0) ZERO
569
- * "24:00" LocalTime.of(0, 0) Period.ofDays(1)
570
- * </pre>
571
- * The query can be used as follows:
572
- * <pre>
573
- * TemporalAccessor parsed = formatter.parse(str);
574
- * LocalTime time = parsed.query(LocalTime::from);
575
- * Period extraDays = parsed.query(DateTimeFormatter.parsedExcessDays());
576
- * </pre>
577
- * @return a query that provides access to the excess days that were parsed
578
- */
579
- parsedExcessDays(): TemporalQuery;
580
-
581
- /**
582
- * A query that provides access to whether a leap-second was parsed.
583
- * <p>
584
- * This returns a singleton {@linkplain TemporalQuery query} that provides
585
- * access to additional information from the parse. The query always returns
586
- * a non-null boolean, true if parsing saw a leap-second, false if not.
587
- * <p>
588
- * Instant parsing handles the special "leap second" time of '23:59:60'.
589
- * Leap seconds occur at '23:59:60' in the UTC time-zone, but at other
590
- * local times in different time-zones. To avoid this potential ambiguity,
591
- * the handling of leap-seconds is limited to
592
- * {@link DateTimeFormatterBuilder#appendInstant()}, as that method
593
- * always parses the instant with the UTC zone offset.
594
- * <p>
595
- * If the time '23:59:60' is received, then a simple conversion is applied,
596
- * replacing the second-of-minute of 60 with 59. This query can be used
597
- * on the parse result to determine if the leap-second adjustment was made.
598
- * The query will return {@code true} if it did adjust to remove the
599
- * leap-second, and {@code false} if not. Note that applying a leap-second
600
- * smoothing mechanism, such as UTC-SLS, is the responsibility of the
601
- * application, as follows:
602
- * <pre>
603
- * TemporalAccessor parsed = formatter.parse(str);
604
- * Instant instant = parsed.query(Instant::from);
605
- * if (parsed.query(DateTimeFormatter.parsedLeapSecond())) {
606
- * // validate leap-second is correct and apply correct smoothing
607
- * }
608
- * </pre>
609
- * @return a query that provides access to whether a leap-second was parsed
610
- */
611
- parsedLeapSecond(): TemporalQuery;
612
-
613
400
  /**
614
401
  * Gets the locale to be used during formatting.
615
402
  * <p>
@@ -817,7 +604,7 @@ export type DateTimeFormatter = Object & {
817
604
  * @param resolverFields the new set of resolver fields, null if no fields
818
605
  * @return a formatter based on this formatter with the requested resolver style, not null
819
606
  */
820
- withResolverFields(resolverFields: TemporalField[]): DateTimeFormatter;
607
+ withResolverFields(...resolverFields: TemporalField[]): DateTimeFormatter;
821
608
 
822
609
  /**
823
610
  * Returns a copy of this formatter with a new set of resolver fields.
@@ -980,7 +767,7 @@ export type DateTimeFormatter = Object & {
980
767
  * @throws IllegalArgumentException if less than 2 types are specified
981
768
  * @throws DateTimeParseException if unable to parse the requested result
982
769
  */
983
- parseBest(text: CharSequence, queries: TemporalQuery[]): TemporalAccessor;
770
+ parseBest(text: CharSequence, ...queries: TemporalQuery[]): TemporalAccessor;
984
771
 
985
772
  /**
986
773
  * Parses the text using this formatter, without resolving the result, intended
@@ -5,12 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- ofPattern: function ofPattern() {},
9
- ofLocalizedDate: function ofLocalizedDate() {},
10
- ofLocalizedTime: function ofLocalizedTime() {},
11
- ofLocalizedDateTime: function ofLocalizedDateTime() {},
12
- parsedExcessDays: function parsedExcessDays() {},
13
- parsedLeapSecond: function parsedLeapSecond() {},
14
8
  getLocale: function getLocale() {},
15
9
  withLocale: function withLocale() {},
16
10
  getDecimalStyle: function getDecimalStyle() {},
@@ -1,6 +1,3 @@
1
- import type { Set } from "../../../util/Set";
2
- import type { Locale } from "../../../util/Locale";
3
-
4
1
  import type { Object } from "../../../lang/Object";
5
2
 
6
3
  import type { String } from "../../../lang/String";
@@ -14,37 +11,6 @@ import type { String } from "../../../lang/String";
14
11
  * @since 1.8
15
12
  */
16
13
  export type DecimalStyle = Object & {
17
- /**
18
- * Lists all the locales that are supported.
19
- * <p>
20
- * The locale 'en_US' will always be present.
21
- * @return a Set of Locales for which localization is supported
22
- */
23
- getAvailableLocales(): Set;
24
-
25
- /**
26
- * Obtains the DecimalStyle for the default
27
- * {@link java.util.Locale.Category#FORMAT FORMAT} locale.
28
- * <p>
29
- * This method provides access to locale sensitive decimal style symbols.
30
- * <p>
31
- * This is equivalent to calling
32
- * {@link #of(Locale)
33
- * of(Locale.getDefault(Locale.Category.FORMAT))}.
34
- * @see java.util.Locale.Category#FORMAT
35
- * @return the decimal style, not null
36
- */
37
- ofDefaultLocale(): DecimalStyle;
38
-
39
- /**
40
- * Obtains the DecimalStyle for the specified locale.
41
- * <p>
42
- * This method provides access to locale sensitive decimal style symbols.
43
- * @param locale the locale, not null
44
- * @return the decimal style, not null
45
- */
46
- of(locale: Locale): DecimalStyle;
47
-
48
14
  /**
49
15
  * Gets the character that represents zero.
50
16
  * <p>
@@ -5,9 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- getAvailableLocales: function getAvailableLocales() {},
9
- ofDefaultLocale: function ofDefaultLocale() {},
10
- of: function of() {},
11
8
  getZeroDigit: function getZeroDigit() {},
12
9
  withZeroDigit: function withZeroDigit() {},
13
10
  getPositiveSign: function getPositiveSign() {},