@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
@@ -5,14 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- systemUTC: function systemUTC() {},
9
- systemDefaultZone: function systemDefaultZone() {},
10
- system: function system() {},
11
- tickSeconds: function tickSeconds() {},
12
- tickMinutes: function tickMinutes() {},
13
- tick: function tick() {},
14
- fixed: function fixed() {},
15
- offset: function offset() {},
16
8
  getZone: function getZone() {},
17
9
  withZone: function withZone() {},
18
10
  millis: function millis() {},
@@ -1,11 +1,11 @@
1
1
  import type { TemporalUnit } from "../temporal/TemporalUnit";
2
- import type { TemporalAmount } from "../temporal/TemporalAmount";
3
- import type { CharSequence } from "../../lang/CharSequence";
4
- import type { Temporal } from "../temporal/Temporal";
2
+
5
3
  import type { List } from "../../util/List";
6
4
 
5
+ import type { Temporal } from "../temporal/Temporal";
7
6
  import type { Object } from "../../lang/Object";
8
7
  import type { String } from "../../lang/String";
8
+ import type { TemporalAmount } from "../temporal/TemporalAmount";
9
9
  import type { Comparable } from "../../lang/Comparable";
10
10
  import type { Serializable } from "../../io/Serializable";
11
11
 
@@ -47,196 +47,6 @@ export type Duration = Object &
47
47
  TemporalAmount &
48
48
  Comparable &
49
49
  Serializable & {
50
- /**
51
- * Obtains a {@code Duration} representing a number of standard 24 hour days.
52
- * <p>
53
- * The seconds are calculated based on the standard definition of a day,
54
- * where each day is 86400 seconds which implies a 24 hour day.
55
- * The nanosecond in second field is set to zero.
56
- * @param days the number of days, positive or negative
57
- * @return a {@code Duration}, not null
58
- * @throws ArithmeticException if the input days exceeds the capacity of {@code Duration}
59
- */
60
- ofDays(days: number): Duration;
61
-
62
- /**
63
- * Obtains a {@code Duration} representing a number of standard hours.
64
- * <p>
65
- * The seconds are calculated based on the standard definition of an hour,
66
- * where each hour is 3600 seconds.
67
- * The nanosecond in second field is set to zero.
68
- * @param hours the number of hours, positive or negative
69
- * @return a {@code Duration}, not null
70
- * @throws ArithmeticException if the input hours exceeds the capacity of {@code Duration}
71
- */
72
- ofHours(hours: number): Duration;
73
-
74
- /**
75
- * Obtains a {@code Duration} representing a number of standard minutes.
76
- * <p>
77
- * The seconds are calculated based on the standard definition of a minute,
78
- * where each minute is 60 seconds.
79
- * The nanosecond in second field is set to zero.
80
- * @param minutes the number of minutes, positive or negative
81
- * @return a {@code Duration}, not null
82
- * @throws ArithmeticException if the input minutes exceeds the capacity of {@code Duration}
83
- */
84
- ofMinutes(minutes: number): Duration;
85
-
86
- /**
87
- * Obtains a {@code Duration} representing a number of seconds.
88
- * <p>
89
- * The nanosecond in second field is set to zero.
90
- * @param seconds the number of seconds, positive or negative
91
- * @return a {@code Duration}, not null
92
- */
93
- ofSeconds(seconds: number): Duration;
94
-
95
- /**
96
- * Obtains a {@code Duration} representing a number of seconds and an
97
- * adjustment in nanoseconds.
98
- * <p>
99
- * This method allows an arbitrary number of nanoseconds to be passed in.
100
- * The factory will alter the values of the second and nanosecond in order
101
- * to ensure that the stored nanosecond is in the range 0 to 999,999,999.
102
- * For example, the following will result in the exactly the same duration:
103
- * <pre>
104
- * Duration.ofSeconds(3, 1);
105
- * Duration.ofSeconds(4, -999_999_999);
106
- * Duration.ofSeconds(2, 1000_000_001);
107
- * </pre>
108
- * @param seconds the number of seconds, positive or negative
109
- * @param nanoAdjustment the nanosecond adjustment to the number of seconds, positive or negative
110
- * @return a {@code Duration}, not null
111
- * @throws ArithmeticException if the adjustment causes the seconds to exceed the capacity of {@code Duration}
112
- */
113
- ofSeconds(seconds: number, nanoAdjustment: number): Duration;
114
-
115
- /**
116
- * Obtains a {@code Duration} representing a number of milliseconds.
117
- * <p>
118
- * The seconds and nanoseconds are extracted from the specified milliseconds.
119
- * @param millis the number of milliseconds, positive or negative
120
- * @return a {@code Duration}, not null
121
- */
122
- ofMillis(millis: number): Duration;
123
-
124
- /**
125
- * Obtains a {@code Duration} representing a number of nanoseconds.
126
- * <p>
127
- * The seconds and nanoseconds are extracted from the specified nanoseconds.
128
- * @param nanos the number of nanoseconds, positive or negative
129
- * @return a {@code Duration}, not null
130
- */
131
- ofNanos(nanos: number): Duration;
132
-
133
- /**
134
- * Obtains a {@code Duration} representing an amount in the specified unit.
135
- * <p>
136
- * The parameters represent the two parts of a phrase like '6 Hours'. For example:
137
- * <pre>
138
- * Duration.of(3, SECONDS);
139
- * Duration.of(465, HOURS);
140
- * </pre>
141
- * Only a subset of units are accepted by this method.
142
- * The unit must either have an {@linkplain TemporalUnit#isDurationEstimated() exact duration} or
143
- * be {@link ChronoUnit#DAYS} which is treated as 24 hours. Other units throw an exception.
144
- * @param amount the amount of the duration, measured in terms of the unit, positive or negative
145
- * @param unit the unit that the duration is measured in, must have an exact duration, not null
146
- * @return a {@code Duration}, not null
147
- * @throws DateTimeException if the period unit has an estimated duration
148
- * @throws ArithmeticException if a numeric overflow occurs
149
- */
150
- of(amount: number, unit: TemporalUnit): Duration;
151
-
152
- /**
153
- * Obtains an instance of {@code Duration} from a temporal amount.
154
- * <p>
155
- * This obtains a duration based on the specified amount.
156
- * A {@code TemporalAmount} represents an amount of time, which may be
157
- * date-based or time-based, which this factory extracts to a duration.
158
- * <p>
159
- * The conversion loops around the set of units from the amount and uses
160
- * the {@linkplain TemporalUnit#getDuration() duration} of the unit to
161
- * calculate the total {@code Duration}.
162
- * Only a subset of units are accepted by this method. The unit must either
163
- * have an {@linkplain TemporalUnit#isDurationEstimated() exact duration}
164
- * or be {@link ChronoUnit#DAYS} which is treated as 24 hours.
165
- * If any other units are found then an exception is thrown.
166
- * @param amount the temporal amount to convert, not null
167
- * @return the equivalent duration, not null
168
- * @throws DateTimeException if unable to convert to a {@code Duration}
169
- * @throws ArithmeticException if numeric overflow occurs
170
- */
171
- from(amount: TemporalAmount): Duration;
172
-
173
- /**
174
- * Obtains a {@code Duration} from a text string such as {@code PnDTnHnMn.nS}.
175
- * <p>
176
- * This will parse a textual representation of a duration, including the
177
- * string produced by {@code toString()}. The formats accepted are based
178
- * on the ISO-8601 duration format {@code PnDTnHnMn.nS} with days
179
- * considered to be exactly 24 hours.
180
- * <p>
181
- * The string starts with an optional sign, denoted by the ASCII negative
182
- * or positive symbol. If negative, the whole period is negated.
183
- * The ASCII letter "P" is next in upper or lower case.
184
- * There are then four sections, each consisting of a number and a suffix.
185
- * The sections have suffixes in ASCII of "D", "H", "M" and "S" for
186
- * days, hours, minutes and seconds, accepted in upper or lower case.
187
- * The suffixes must occur in order. The ASCII letter "T" must occur before
188
- * the first occurrence, if any, of an hour, minute or second section.
189
- * At least one of the four sections must be present, and if "T" is present
190
- * there must be at least one section after the "T".
191
- * The number part of each section must consist of one or more ASCII digits.
192
- * The number may be prefixed by the ASCII negative or positive symbol.
193
- * The number of days, hours and minutes must parse to an {@code long}.
194
- * The number of seconds must parse to an {@code long} with optional fraction.
195
- * The decimal point may be either a dot or a comma.
196
- * The fractional part may have from zero to 9 digits.
197
- * <p>
198
- * The leading plus/minus sign, and negative values for other units are
199
- * not part of the ISO-8601 standard.
200
- * <p>
201
- * Examples:
202
- * <pre>
203
- * "PT20.345S" -- parses as "20.345 seconds"
204
- * "PT15M" -- parses as "15 minutes" (where a minute is 60 seconds)
205
- * "PT10H" -- parses as "10 hours" (where an hour is 3600 seconds)
206
- * "P2D" -- parses as "2 days" (where a day is 24 hours or 86400 seconds)
207
- * "P2DT3H4M" -- parses as "2 days, 3 hours and 4 minutes"
208
- * "P-6H3M" -- parses as "-6 hours and +3 minutes"
209
- * "-P6H3M" -- parses as "-6 hours and -3 minutes"
210
- * "-P-6H+3M" -- parses as "+6 hours and -3 minutes"
211
- * </pre>
212
- * @param text the text to parse, not null
213
- * @return the parsed duration, not null
214
- * @throws DateTimeParseException if the text cannot be parsed to a duration
215
- */
216
- parse(text: CharSequence): Duration;
217
-
218
- /**
219
- * Obtains a {@code Duration} representing the duration between two temporal objects.
220
- * <p>
221
- * This calculates the duration between two temporal objects. If the objects
222
- * are of different types, then the duration is calculated based on the type
223
- * of the first object. For example, if the first argument is a {@code LocalTime}
224
- * then the second argument is converted to a {@code LocalTime}.
225
- * <p>
226
- * The specified temporal objects must support the {@link ChronoUnit#SECONDS SECONDS} unit.
227
- * For full accuracy, either the {@link ChronoUnit#NANOS NANOS} unit or the
228
- * {@link ChronoField#NANO_OF_SECOND NANO_OF_SECOND} field should be supported.
229
- * <p>
230
- * The result of this method can be a negative period if the end is before the start.
231
- * To guarantee to obtain a positive duration call {@link #abs()} on the result.
232
- * @param startInclusive the start instant, inclusive, not null
233
- * @param endExclusive the end instant, exclusive, not null
234
- * @return a {@code Duration}, not null
235
- * @throws DateTimeException if the seconds between the temporals cannot be obtained
236
- * @throws ArithmeticException if the calculation exceeds the capacity of {@code Duration}
237
- */
238
- between(startInclusive: Temporal, endExclusive: Temporal): Duration;
239
-
240
50
  /**
241
51
  * Gets the value of the requested unit.
242
52
  * <p>
@@ -5,16 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- ofDays: function ofDays() {},
9
- ofHours: function ofHours() {},
10
- ofMinutes: function ofMinutes() {},
11
- ofSeconds: function ofSeconds() {},
12
- ofMillis: function ofMillis() {},
13
- ofNanos: function ofNanos() {},
14
- of: function of() {},
15
- from: function from() {},
16
- parse: function parse() {},
17
- between: function between() {},
18
8
  get: function get() {},
19
9
  getUnits: function getUnits() {},
20
10
  isZero: function isZero() {},
@@ -1,7 +1,3 @@
1
- import type { Clock } from "../Clock";
2
-
3
- import type { TemporalAccessor } from "../temporal/TemporalAccessor";
4
- import type { CharSequence } from "../../lang/CharSequence";
5
1
  import type { TemporalField } from "../temporal/TemporalField";
6
2
 
7
3
  import type { TemporalUnit } from "../temporal/TemporalUnit";
@@ -133,103 +129,6 @@ export type Instant = Object &
133
129
  TemporalAdjuster &
134
130
  Comparable &
135
131
  Serializable & {
136
- /**
137
- * Obtains the current instant from the system clock.
138
- * <p>
139
- * This will query the {@link Clock#systemUTC() system UTC clock} to
140
- * obtain the current instant.
141
- * <p>
142
- * Using this method will prevent the ability to use an alternate time-source for
143
- * testing because the clock is effectively hard-coded.
144
- * @return the current instant using the system clock, not null
145
- */
146
- now(): Instant;
147
-
148
- /**
149
- * Obtains the current instant from the specified clock.
150
- * <p>
151
- * This will query the specified clock to obtain the current time.
152
- * <p>
153
- * Using this method allows the use of an alternate clock for testing.
154
- * The alternate clock may be introduced using {@link Clock dependency injection}.
155
- * @param clock the clock to use, not null
156
- * @return the current instant, not null
157
- */
158
- now(clock: Clock): Instant;
159
-
160
- /**
161
- * Obtains an instance of {@code Instant} using seconds from the
162
- * epoch of 1970-01-01T00:00:00Z.
163
- * <p>
164
- * The nanosecond field is set to zero.
165
- * @param epochSecond the number of seconds from 1970-01-01T00:00:00Z
166
- * @return an instant, not null
167
- * @throws DateTimeException if the instant exceeds the maximum or minimum instant
168
- */
169
- ofEpochSecond(epochSecond: number): Instant;
170
-
171
- /**
172
- * Obtains an instance of {@code Instant} using seconds from the
173
- * epoch of 1970-01-01T00:00:00Z and nanosecond fraction of second.
174
- * <p>
175
- * This method allows an arbitrary number of nanoseconds to be passed in.
176
- * The factory will alter the values of the second and nanosecond in order
177
- * to ensure that the stored nanosecond is in the range 0 to 999,999,999.
178
- * For example, the following will result in the exactly the same instant:
179
- * <pre>
180
- * Instant.ofEpochSecond(3, 1);
181
- * Instant.ofEpochSecond(4, -999_999_999);
182
- * Instant.ofEpochSecond(2, 1000_000_001);
183
- * </pre>
184
- * @param epochSecond the number of seconds from 1970-01-01T00:00:00Z
185
- * @param nanoAdjustment the nanosecond adjustment to the number of seconds, positive or negative
186
- * @return an instant, not null
187
- * @throws DateTimeException if the instant exceeds the maximum or minimum instant
188
- * @throws ArithmeticException if numeric overflow occurs
189
- */
190
- ofEpochSecond(epochSecond: number, nanoAdjustment: number): Instant;
191
-
192
- /**
193
- * Obtains an instance of {@code Instant} using milliseconds from the
194
- * epoch of 1970-01-01T00:00:00Z.
195
- * <p>
196
- * The seconds and nanoseconds are extracted from the specified milliseconds.
197
- * @param epochMilli the number of milliseconds from 1970-01-01T00:00:00Z
198
- * @return an instant, not null
199
- * @throws DateTimeException if the instant exceeds the maximum or minimum instant
200
- */
201
- ofEpochMilli(epochMilli: number): Instant;
202
-
203
- /**
204
- * Obtains an instance of {@code Instant} from a temporal object.
205
- * <p>
206
- * This obtains an instant based on the specified temporal.
207
- * A {@code TemporalAccessor} represents an arbitrary set of date and time information,
208
- * which this factory converts to an instance of {@code Instant}.
209
- * <p>
210
- * The conversion extracts the {@link ChronoField#INSTANT_SECONDS INSTANT_SECONDS}
211
- * and {@link ChronoField#NANO_OF_SECOND NANO_OF_SECOND} fields.
212
- * <p>
213
- * This method matches the signature of the functional interface {@link TemporalQuery}
214
- * allowing it to be used as a query via method reference, {@code Instant::from}.
215
- * @param temporal the temporal object to convert, not null
216
- * @return the instant, not null
217
- * @throws DateTimeException if unable to convert to an {@code Instant}
218
- */
219
- from(temporal: TemporalAccessor): Instant;
220
-
221
- /**
222
- * Obtains an instance of {@code Instant} from a text string such as
223
- * {@code 2007-12-03T10:15:30.00Z}.
224
- * <p>
225
- * The string must represent a valid instant in UTC and is parsed using
226
- * {@link DateTimeFormatter#ISO_INSTANT}.
227
- * @param text the text to parse, not null
228
- * @return the parsed instant, not null
229
- * @throws DateTimeParseException if the text cannot be parsed
230
- */
231
- parse(text: CharSequence): Instant;
232
-
233
132
  /**
234
133
  * Checks if the specified field is supported.
235
134
  * <p>
@@ -5,11 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- now: function now() {},
9
- ofEpochSecond: function ofEpochSecond() {},
10
- ofEpochMilli: function ofEpochMilli() {},
11
- from: function from() {},
12
- parse: function parse() {},
13
8
  isSupported: function isSupported() {},
14
9
  range: function range() {},
15
10
  get: function get() {},
@@ -1,17 +1,11 @@
1
- import type { ZoneId } from "../ZoneId";
2
- import type { Clock } from "../Clock";
3
-
4
- import type { Month } from "../Month";
5
-
6
- import type { TemporalAccessor } from "../temporal/TemporalAccessor";
7
- import type { CharSequence } from "../../lang/CharSequence";
8
- import type { DateTimeFormatter } from "../format/DateTimeFormatter";
9
1
  import type { TemporalField } from "../temporal/TemporalField";
10
2
 
11
3
  import type { TemporalUnit } from "../temporal/TemporalUnit";
12
4
  import type { ValueRange } from "../temporal/ValueRange";
5
+
13
6
  import type { IsoChronology } from "../chrono/IsoChronology";
14
7
  import type { Era } from "../chrono/Era";
8
+ import type { Month } from "../Month";
15
9
  import type { DayOfWeek } from "../DayOfWeek";
16
10
  import type { TemporalAdjuster } from "../temporal/TemporalAdjuster";
17
11
  import type { TemporalAmount } from "../temporal/TemporalAmount";
@@ -20,11 +14,13 @@ import type { TemporalQuery } from "../temporal/TemporalQuery";
20
14
  import type { Temporal } from "../temporal/Temporal";
21
15
  import type { ChronoLocalDate } from "../chrono/ChronoLocalDate";
22
16
  import type { Period } from "../Period";
17
+ import type { DateTimeFormatter } from "../format/DateTimeFormatter";
23
18
  import type { String } from "../../lang/String";
24
19
  import type { LocalTime } from "../LocalTime";
25
20
  import type { LocalDateTime } from "../LocalDateTime";
26
21
  import type { OffsetTime } from "../OffsetTime";
27
22
  import type { OffsetDateTime } from "../OffsetDateTime";
23
+ import type { ZoneId } from "../ZoneId";
28
24
  import type { ZonedDateTime } from "../ZonedDateTime";
29
25
  import type { Object } from "../../lang/Object";
30
26
  import type { Serializable } from "../../io/Serializable";
@@ -64,132 +60,6 @@ export type LocalDate = Object &
64
60
  TemporalAdjuster &
65
61
  ChronoLocalDate &
66
62
  Serializable & {
67
- /**
68
- * Obtains the current date from the system clock in the default time-zone.
69
- * <p>
70
- * This will query the {@link Clock#systemDefaultZone() system clock} in the default
71
- * time-zone to obtain the current date.
72
- * <p>
73
- * Using this method will prevent the ability to use an alternate clock for testing
74
- * because the clock is hard-coded.
75
- * @return the current date using the system clock and default time-zone, not null
76
- */
77
- now(): LocalDate;
78
-
79
- /**
80
- * Obtains the current date from the system clock in the specified time-zone.
81
- * <p>
82
- * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date.
83
- * Specifying the time-zone avoids dependence on the default time-zone.
84
- * <p>
85
- * Using this method will prevent the ability to use an alternate clock for testing
86
- * because the clock is hard-coded.
87
- * @param zone the zone ID to use, not null
88
- * @return the current date using the system clock, not null
89
- */
90
- now(zone: ZoneId): LocalDate;
91
-
92
- /**
93
- * Obtains the current date from the specified clock.
94
- * <p>
95
- * This will query the specified clock to obtain the current date - today.
96
- * Using this method allows the use of an alternate clock for testing.
97
- * The alternate clock may be introduced using {@link Clock dependency injection}.
98
- * @param clock the clock to use, not null
99
- * @return the current date, not null
100
- */
101
- now(clock: Clock): LocalDate;
102
-
103
- /**
104
- * Obtains an instance of {@code LocalDate} from a year, month and day.
105
- * <p>
106
- * This returns a {@code LocalDate} with the specified year, month and day-of-month.
107
- * The day must be valid for the year and month, otherwise an exception will be thrown.
108
- * @param year the year to represent, from MIN_YEAR to MAX_YEAR
109
- * @param month the month-of-year to represent, not null
110
- * @param dayOfMonth the day-of-month to represent, from 1 to 31
111
- * @return the local date, not null
112
- * @throws DateTimeException if the value of any field is out of range,&#xA; or if the day-of-month is invalid for the month-year
113
- */
114
- of(year: number, month: Month, dayOfMonth: number): LocalDate;
115
-
116
- /**
117
- * Obtains an instance of {@code LocalDate} from a year, month and day.
118
- * <p>
119
- * This returns a {@code LocalDate} with the specified year, month and day-of-month.
120
- * The day must be valid for the year and month, otherwise an exception will be thrown.
121
- * @param year the year to represent, from MIN_YEAR to MAX_YEAR
122
- * @param month the month-of-year to represent, from 1 (January) to 12 (December)
123
- * @param dayOfMonth the day-of-month to represent, from 1 to 31
124
- * @return the local date, not null
125
- * @throws DateTimeException if the value of any field is out of range,&#xA; or if the day-of-month is invalid for the month-year
126
- */
127
- of(year: number, month: number, dayOfMonth: number): LocalDate;
128
-
129
- /**
130
- * Obtains an instance of {@code LocalDate} from a year and day-of-year.
131
- * <p>
132
- * This returns a {@code LocalDate} with the specified year and day-of-year.
133
- * The day-of-year must be valid for the year, otherwise an exception will be thrown.
134
- * @param year the year to represent, from MIN_YEAR to MAX_YEAR
135
- * @param dayOfYear the day-of-year to represent, from 1 to 366
136
- * @return the local date, not null
137
- * @throws DateTimeException if the value of any field is out of range,&#xA; or if the day-of-year is invalid for the year
138
- */
139
- ofYearDay(year: number, dayOfYear: number): LocalDate;
140
-
141
- /**
142
- * Obtains an instance of {@code LocalDate} from the epoch day count.
143
- * <p>
144
- * This returns a {@code LocalDate} with the specified epoch-day.
145
- * The {@link ChronoField#EPOCH_DAY EPOCH_DAY} is a simple incrementing count
146
- * of days where day 0 is 1970-01-01. Negative numbers represent earlier days.
147
- * @param epochDay the Epoch Day to convert, based on the epoch 1970-01-01
148
- * @return the local date, not null
149
- * @throws DateTimeException if the epoch day exceeds the supported date range
150
- */
151
- ofEpochDay(epochDay: number): LocalDate;
152
-
153
- /**
154
- * Obtains an instance of {@code LocalDate} from a temporal object.
155
- * <p>
156
- * This obtains a local date based on the specified temporal.
157
- * A {@code TemporalAccessor} represents an arbitrary set of date and time information,
158
- * which this factory converts to an instance of {@code LocalDate}.
159
- * <p>
160
- * The conversion uses the {@link TemporalQueries#localDate()} query, which relies
161
- * on extracting the {@link ChronoField#EPOCH_DAY EPOCH_DAY} field.
162
- * <p>
163
- * This method matches the signature of the functional interface {@link TemporalQuery}
164
- * allowing it to be used as a query via method reference, {@code LocalDate::from}.
165
- * @param temporal the temporal object to convert, not null
166
- * @return the local date, not null
167
- * @throws DateTimeException if unable to convert to a {@code LocalDate}
168
- */
169
- from(temporal: TemporalAccessor): LocalDate;
170
-
171
- /**
172
- * Obtains an instance of {@code LocalDate} from a text string such as {@code 2007-12-03}.
173
- * <p>
174
- * The string must represent a valid date and is parsed using
175
- * {@link java.time.format.DateTimeFormatter#ISO_LOCAL_DATE}.
176
- * @param text the text to parse such as "2007-12-03", not null
177
- * @return the parsed local date, not null
178
- * @throws DateTimeParseException if the text cannot be parsed
179
- */
180
- parse(text: CharSequence): LocalDate;
181
-
182
- /**
183
- * Obtains an instance of {@code LocalDate} from a text string using a specific formatter.
184
- * <p>
185
- * The text is parsed using the formatter, returning a date.
186
- * @param text the text to parse, not null
187
- * @param formatter the formatter to use, not null
188
- * @return the parsed local date, not null
189
- * @throws DateTimeParseException if the text cannot be parsed
190
- */
191
- parse(text: CharSequence, formatter: DateTimeFormatter): LocalDate;
192
-
193
63
  /**
194
64
  * Checks if the specified field is supported.
195
65
  * <p>
@@ -5,12 +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
- ofYearDay: function ofYearDay() {},
11
- ofEpochDay: function ofEpochDay() {},
12
- from: function from() {},
13
- parse: function parse() {},
14
8
  isSupported: function isSupported() {},
15
9
  range: function range() {},
16
10
  get: function get() {},