@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,11 +1,9 @@
1
- import type { TemporalAmount } from "../temporal/TemporalAmount";
2
- import type { CharSequence } from "../../lang/CharSequence";
3
- import type { LocalDate } from "../LocalDate";
4
1
  import type { TemporalUnit } from "../temporal/TemporalUnit";
5
2
 
6
3
  import type { List } from "../../util/List";
7
4
  import type { IsoChronology } from "../chrono/IsoChronology";
8
5
 
6
+ import type { TemporalAmount } from "../temporal/TemporalAmount";
9
7
  import type { Temporal } from "../temporal/Temporal";
10
8
  import type { Object } from "../../lang/Object";
11
9
  import type { String } from "../../lang/String";
@@ -54,138 +52,6 @@ import type { Serializable } from "../../io/Serializable";
54
52
  export type Period = Object &
55
53
  ChronoPeriod &
56
54
  Serializable & {
57
- /**
58
- * Obtains a {@code Period} representing a number of years.
59
- * <p>
60
- * The resulting period will have the specified years.
61
- * The months and days units will be zero.
62
- * @param years the number of years, positive or negative
63
- * @return the period of years, not null
64
- */
65
- ofYears(years: number): Period;
66
-
67
- /**
68
- * Obtains a {@code Period} representing a number of months.
69
- * <p>
70
- * The resulting period will have the specified months.
71
- * The years and days units will be zero.
72
- * @param months the number of months, positive or negative
73
- * @return the period of months, not null
74
- */
75
- ofMonths(months: number): Period;
76
-
77
- /**
78
- * Obtains a {@code Period} representing a number of weeks.
79
- * <p>
80
- * The resulting period will be day-based, with the amount of days
81
- * equal to the number of weeks multiplied by 7.
82
- * The years and months units will be zero.
83
- * @param weeks the number of weeks, positive or negative
84
- * @return the period, with the input weeks converted to days, not null
85
- */
86
- ofWeeks(weeks: number): Period;
87
-
88
- /**
89
- * Obtains a {@code Period} representing a number of days.
90
- * <p>
91
- * The resulting period will have the specified days.
92
- * The years and months units will be zero.
93
- * @param days the number of days, positive or negative
94
- * @return the period of days, not null
95
- */
96
- ofDays(days: number): Period;
97
-
98
- /**
99
- * Obtains a {@code Period} representing a number of years, months and days.
100
- * <p>
101
- * This creates an instance based on years, months and days.
102
- * @param years the amount of years, may be negative
103
- * @param months the amount of months, may be negative
104
- * @param days the amount of days, may be negative
105
- * @return the period of years, months and days, not null
106
- */
107
- of(years: number, months: number, days: number): Period;
108
-
109
- /**
110
- * Obtains an instance of {@code Period} from a temporal amount.
111
- * <p>
112
- * This obtains a period based on the specified amount.
113
- * A {@code TemporalAmount} represents an amount of time, which may be
114
- * date-based or time-based, which this factory extracts to a {@code Period}.
115
- * <p>
116
- * The conversion loops around the set of units from the amount and uses
117
- * the {@link ChronoUnit#YEARS YEARS}, {@link ChronoUnit#MONTHS MONTHS}
118
- * and {@link ChronoUnit#DAYS DAYS} units to create a period.
119
- * If any other units are found then an exception is thrown.
120
- * <p>
121
- * If the amount is a {@code ChronoPeriod} then it must use the ISO chronology.
122
- * @param amount the temporal amount to convert, not null
123
- * @return the equivalent period, not null
124
- * @throws DateTimeException if unable to convert to a {@code Period}
125
- * @throws ArithmeticException if the amount of years, months or days exceeds an int
126
- */
127
- from(amount: TemporalAmount): Period;
128
-
129
- /**
130
- * Obtains a {@code Period} from a text string such as {@code PnYnMnD}.
131
- * <p>
132
- * This will parse the string produced by {@code toString()} which is
133
- * based on the ISO-8601 period formats {@code PnYnMnD} and {@code PnW}.
134
- * <p>
135
- * The string starts with an optional sign, denoted by the ASCII negative
136
- * or positive symbol. If negative, the whole period is negated.
137
- * The ASCII letter "P" is next in upper or lower case.
138
- * There are then four sections, each consisting of a number and a suffix.
139
- * At least one of the four sections must be present.
140
- * The sections have suffixes in ASCII of "Y", "M", "W" and "D" for
141
- * years, months, weeks and days, accepted in upper or lower case.
142
- * The suffixes must occur in order.
143
- * The number part of each section must consist of ASCII digits.
144
- * The number may be prefixed by the ASCII negative or positive symbol.
145
- * The number must parse to an {@code int}.
146
- * <p>
147
- * The leading plus/minus sign, and negative values for other units are
148
- * not part of the ISO-8601 standard. In addition, ISO-8601 does not
149
- * permit mixing between the {@code PnYnMnD} and {@code PnW} formats.
150
- * Any week-based input is multiplied by 7 and treated as a number of days.
151
- * <p>
152
- * For example, the following are valid inputs:
153
- * <pre>
154
- * "P2Y" -- Period.ofYears(2)
155
- * "P3M" -- Period.ofMonths(3)
156
- * "P4W" -- Period.ofWeeks(4)
157
- * "P5D" -- Period.ofDays(5)
158
- * "P1Y2M3D" -- Period.of(1, 2, 3)
159
- * "P1Y2M3W4D" -- Period.of(1, 2, 25)
160
- * "P-1Y2M" -- Period.of(-1, 2, 0)
161
- * "-P1Y2M" -- Period.of(-1, -2, 0)
162
- * </pre>
163
- * @param text the text to parse, not null
164
- * @return the parsed period, not null
165
- * @throws DateTimeParseException if the text cannot be parsed to a period
166
- */
167
- parse(text: CharSequence): Period;
168
-
169
- /**
170
- * Obtains a {@code Period} consisting of the number of years, months,
171
- * and days between two dates.
172
- * <p>
173
- * The start date is included, but the end date is not.
174
- * The period is calculated by removing complete months, then calculating
175
- * the remaining number of days, adjusting to ensure that both have the same sign.
176
- * The number of months is then split into years and months based on a 12 month year.
177
- * A month is considered if the end day-of-month is greater than or equal to the start day-of-month.
178
- * For example, from {@code 2010-01-15} to {@code 2011-03-18} is one year, two months and three days.
179
- * <p>
180
- * The result of this method can be a negative period if the end is before the start.
181
- * The negative sign will be the same in each of year, month and day.
182
- * @param startDateInclusive the start date, inclusive, not null
183
- * @param endDateExclusive the end date, exclusive, not null
184
- * @return the period between this date and the end date, not null
185
- * @see ChronoLocalDate#until(ChronoLocalDate)
186
- */
187
- between(startDateInclusive: LocalDate, endDateExclusive: LocalDate): Period;
188
-
189
55
  /**
190
56
  * Gets the value of the requested unit.
191
57
  * <p>
@@ -5,14 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- ofYears: function ofYears() {},
9
- ofMonths: function ofMonths() {},
10
- ofWeeks: function ofWeeks() {},
11
- ofDays: function ofDays() {},
12
- of: function of() {},
13
- from: function from() {},
14
- parse: function parse() {},
15
- between: function between() {},
16
8
  get: function get() {},
17
9
  getUnits: function getUnits() {},
18
10
  getChronology: function getChronology() {},
@@ -1,14 +1,11 @@
1
- import type { Set } from "../../util/Set";
2
1
  import type { String } from "../../lang/String";
3
- import type { Map } from "../../util/Map";
4
- import type { ZoneOffset } from "../ZoneOffset";
5
- import type { TemporalAccessor } from "../temporal/TemporalAccessor";
6
2
  import type { TextStyle } from "../format/TextStyle";
7
3
  import type { Locale } from "../../util/Locale";
8
4
  import type { ZoneRules } from "../zone/ZoneRules";
9
5
  import type { Object } from "../../lang/Object";
10
6
 
11
7
  import type { Serializable } from "../../io/Serializable";
8
+ import type { Map } from "../../util/Map";
12
9
 
13
10
  /**
14
11
  * A time-zone ID, such as {@code Europe/Paris}.
@@ -97,123 +94,6 @@ import type { Serializable } from "../../io/Serializable";
97
94
  */
98
95
  export type ZoneId = Object &
99
96
  Serializable & {
100
- /**
101
- * Gets the system default time-zone.
102
- * <p>
103
- * This queries {@link TimeZone#getDefault()} to find the default time-zone
104
- * and converts it to a {@code ZoneId}. If the system default time-zone is changed,
105
- * then the result of this method will also change.
106
- * @return the zone ID, not null
107
- * @throws DateTimeException if the converted zone ID has an invalid format
108
- * @throws ZoneRulesException if the converted zone region ID cannot be found
109
- */
110
- systemDefault(): ZoneId;
111
-
112
- /**
113
- * Gets the set of available zone IDs.
114
- * <p>
115
- * This set includes the string form of all available region-based IDs.
116
- * Offset-based zone IDs are not included in the returned set.
117
- * The ID can be passed to {@link #of(String)} to create a {@code ZoneId}.
118
- * <p>
119
- * The set of zone IDs can increase over time, although in a typical application
120
- * the set of IDs is fixed. Each call to this method is thread-safe.
121
- * @return a modifiable copy of the set of zone IDs, not null
122
- */
123
- getAvailableZoneIds(): Set;
124
-
125
- /**
126
- * Obtains an instance of {@code ZoneId} using its ID using a map
127
- * of aliases to supplement the standard zone IDs.
128
- * <p>
129
- * Many users of time-zones use short abbreviations, such as PST for
130
- * 'Pacific Standard Time' and PDT for 'Pacific Daylight Time'.
131
- * These abbreviations are not unique, and so cannot be used as IDs.
132
- * This method allows a map of string to time-zone to be setup and reused
133
- * within an application.
134
- * @param zoneId the time-zone ID, not null
135
- * @param aliasMap a map of alias zone IDs (typically abbreviations) to real zone IDs, not null
136
- * @return the zone ID, not null
137
- * @throws DateTimeException if the zone ID has an invalid format
138
- * @throws ZoneRulesException if the zone ID is a region ID that cannot be found
139
- */
140
- of(zoneId: String | string, aliasMap: Map | {}): ZoneId;
141
-
142
- /**
143
- * Obtains an instance of {@code ZoneId} from an ID ensuring that the
144
- * ID is valid and available for use.
145
- * <p>
146
- * This method parses the ID producing a {@code ZoneId} or {@code ZoneOffset}.
147
- * A {@code ZoneOffset} is returned if the ID is 'Z', or starts with '+' or '-'.
148
- * The result will always be a valid ID for which {@link ZoneRules} can be obtained.
149
- * <p>
150
- * Parsing matches the zone ID step by step as follows.
151
- * <ul>
152
- * <li>If the zone ID equals 'Z', the result is {@code ZoneOffset.UTC}.
153
- * <li>If the zone ID consists of a single letter, the zone ID is invalid
154
- * and {@code DateTimeException} is thrown.
155
- * <li>If the zone ID starts with '+' or '-', the ID is parsed as a
156
- * {@code ZoneOffset} using {@link ZoneOffset#of(String)}.
157
- * <li>If the zone ID equals 'GMT', 'UTC' or 'UT' then the result is a {@code ZoneId}
158
- * with the same ID and rules equivalent to {@code ZoneOffset.UTC}.
159
- * <li>If the zone ID starts with 'UTC+', 'UTC-', 'GMT+', 'GMT-', 'UT+' or 'UT-'
160
- * then the ID is a prefixed offset-based ID. The ID is split in two, with
161
- * a two or three letter prefix and a suffix starting with the sign.
162
- * The suffix is parsed as a {@link ZoneOffset#of(String) ZoneOffset}.
163
- * The result will be a {@code ZoneId} with the specified UTC/GMT/UT prefix
164
- * and the normalized offset ID as per {@link ZoneOffset#getId()}.
165
- * The rules of the returned {@code ZoneId} will be equivalent to the
166
- * parsed {@code ZoneOffset}.
167
- * <li>All other IDs are parsed as region-based zone IDs. Region IDs must
168
- * match the regular expression <code>[A-Za-z][A-Za-z0-9~/._+-]+</code>
169
- * otherwise a {@code DateTimeException} is thrown. If the zone ID is not
170
- * in the configured set of IDs, {@code ZoneRulesException} is thrown.
171
- * The detailed format of the region ID depends on the group supplying the data.
172
- * The default set of data is supplied by the IANA Time Zone Database (TZDB).
173
- * This has region IDs of the form '{area}/{city}', such as 'Europe/Paris' or 'America/New_York'.
174
- * This is compatible with most IDs from {@link java.util.TimeZone}.
175
- * </ul>
176
- * @param zoneId the time-zone ID, not null
177
- * @return the zone ID, not null
178
- * @throws DateTimeException if the zone ID has an invalid format
179
- * @throws ZoneRulesException if the zone ID is a region ID that cannot be found
180
- */
181
- of(zoneId: String | string): ZoneId;
182
-
183
- /**
184
- * Obtains an instance of {@code ZoneId} wrapping an offset.
185
- * <p>
186
- * If the prefix is "GMT", "UTC", or "UT" a {@code ZoneId}
187
- * with the prefix and the non-zero offset is returned.
188
- * If the prefix is empty {@code ""} the {@code ZoneOffset} is returned.
189
- * @param prefix the time-zone ID, not null
190
- * @param offset the offset, not null
191
- * @return the zone ID, not null
192
- * @throws IllegalArgumentException if the prefix is not one of&#xA; "GMT", "UTC", or "UT", or ""
193
- */
194
- ofOffset(prefix: String | string, offset: ZoneOffset): ZoneId;
195
-
196
- /**
197
- * Obtains an instance of {@code ZoneId} from a temporal object.
198
- * <p>
199
- * This obtains a zone based on the specified temporal.
200
- * A {@code TemporalAccessor} represents an arbitrary set of date and time information,
201
- * which this factory converts to an instance of {@code ZoneId}.
202
- * <p>
203
- * A {@code TemporalAccessor} represents some form of date and time information.
204
- * This factory converts the arbitrary temporal object to an instance of {@code ZoneId}.
205
- * <p>
206
- * The conversion will try to obtain the zone in a way that favours region-based
207
- * zones over offset-based zones using {@link TemporalQueries#zone()}.
208
- * <p>
209
- * This method matches the signature of the functional interface {@link TemporalQuery}
210
- * allowing it to be used as a query via method reference, {@code ZoneId::from}.
211
- * @param temporal the temporal object to convert, not null
212
- * @return the zone ID, not null
213
- * @throws DateTimeException if unable to convert to a {@code ZoneId}
214
- */
215
- from(temporal: TemporalAccessor): ZoneId;
216
-
217
97
  /**
218
98
  * Gets the unique time-zone ID.
219
99
  * <p>
@@ -5,11 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- systemDefault: function systemDefault() {},
9
- getAvailableZoneIds: function getAvailableZoneIds() {},
10
- of: function of() {},
11
- ofOffset: function ofOffset() {},
12
- from: function from() {},
13
8
  getId: function getId() {},
14
9
  getDisplayName: function getDisplayName() {},
15
10
  getRules: function getRules() {},
@@ -1,6 +1,4 @@
1
1
  import type { String } from "../../lang/String";
2
-
3
- import type { TemporalAccessor } from "../temporal/TemporalAccessor";
4
2
  import type { ZoneRules } from "../zone/ZoneRules";
5
3
  import type { TemporalField } from "../temporal/TemporalField";
6
4
 
@@ -11,6 +9,7 @@ import type { TemporalQuery } from "../temporal/TemporalQuery";
11
9
  import type { Temporal } from "../temporal/Temporal";
12
10
  import type { Object } from "../../lang/Object";
13
11
  import type { ZoneId } from "../ZoneId";
12
+ import type { TemporalAccessor } from "../temporal/TemporalAccessor";
14
13
  import type { TemporalAdjuster } from "../temporal/TemporalAdjuster";
15
14
  import type { Comparable } from "../../lang/Comparable";
16
15
  import type { Serializable } from "../../io/Serializable";
@@ -58,108 +57,6 @@ export type ZoneOffset = ZoneId &
58
57
  TemporalAdjuster &
59
58
  Comparable &
60
59
  Serializable & {
61
- /**
62
- * Obtains an instance of {@code ZoneOffset} using the ID.
63
- * <p>
64
- * This method parses the string ID of a {@code ZoneOffset} to
65
- * return an instance. The parsing accepts all the formats generated by
66
- * {@link #getId()}, plus some additional formats:
67
- * <ul>
68
- * <li>{@code Z} - for UTC
69
- * <li>{@code +h}
70
- * <li>{@code +hh}
71
- * <li>{@code +hh:mm}
72
- * <li>{@code -hh:mm}
73
- * <li>{@code +hhmm}
74
- * <li>{@code -hhmm}
75
- * <li>{@code +hh:mm:ss}
76
- * <li>{@code -hh:mm:ss}
77
- * <li>{@code +hhmmss}
78
- * <li>{@code -hhmmss}
79
- * </ul>
80
- * Note that &plusmn; means either the plus or minus symbol.
81
- * <p>
82
- * The ID of the returned offset will be normalized to one of the formats
83
- * described by {@link #getId()}.
84
- * <p>
85
- * The maximum supported range is from +18:00 to -18:00 inclusive.
86
- * @param offsetId the offset ID, not null
87
- * @return the zone-offset, not null
88
- * @throws DateTimeException if the offset ID is invalid
89
- */
90
- of(offsetId: String | string): ZoneOffset;
91
-
92
- /**
93
- * Obtains an instance of {@code ZoneOffset} using an offset in hours.
94
- * @param hours the time-zone offset in hours, from -18 to +18
95
- * @return the zone-offset, not null
96
- * @throws DateTimeException if the offset is not in the required range
97
- */
98
- ofHours(hours: number): ZoneOffset;
99
-
100
- /**
101
- * Obtains an instance of {@code ZoneOffset} using an offset in
102
- * hours and minutes.
103
- * <p>
104
- * The sign of the hours and minutes components must match.
105
- * Thus, if the hours is negative, the minutes must be negative or zero.
106
- * If the hours is zero, the minutes may be positive, negative or zero.
107
- * @param hours the time-zone offset in hours, from -18 to +18
108
- * @param minutes the time-zone offset in minutes, from 0 to &plusmn;59, sign matches hours
109
- * @return the zone-offset, not null
110
- * @throws DateTimeException if the offset is not in the required range
111
- */
112
- ofHoursMinutes(hours: number, minutes: number): ZoneOffset;
113
-
114
- /**
115
- * Obtains an instance of {@code ZoneOffset} using an offset in
116
- * hours, minutes and seconds.
117
- * <p>
118
- * The sign of the hours, minutes and seconds components must match.
119
- * Thus, if the hours is negative, the minutes and seconds must be negative or zero.
120
- * @param hours the time-zone offset in hours, from -18 to +18
121
- * @param minutes the time-zone offset in minutes, from 0 to &plusmn;59, sign matches hours and seconds
122
- * @param seconds the time-zone offset in seconds, from 0 to &plusmn;59, sign matches hours and minutes
123
- * @return the zone-offset, not null
124
- * @throws DateTimeException if the offset is not in the required range
125
- */
126
- ofHoursMinutesSeconds(
127
- hours: number,
128
- minutes: number,
129
- seconds: number
130
- ): ZoneOffset;
131
-
132
- /**
133
- * Obtains an instance of {@code ZoneOffset} from a temporal object.
134
- * <p>
135
- * This obtains an offset based on the specified temporal.
136
- * A {@code TemporalAccessor} represents an arbitrary set of date and time information,
137
- * which this factory converts to an instance of {@code ZoneOffset}.
138
- * <p>
139
- * A {@code TemporalAccessor} represents some form of date and time information.
140
- * This factory converts the arbitrary temporal object to an instance of {@code ZoneOffset}.
141
- * <p>
142
- * The conversion uses the {@link TemporalQueries#offset()} query, which relies
143
- * on extracting the {@link ChronoField#OFFSET_SECONDS OFFSET_SECONDS} field.
144
- * <p>
145
- * This method matches the signature of the functional interface {@link TemporalQuery}
146
- * allowing it to be used as a query via method reference, {@code ZoneOffset::from}.
147
- * @param temporal the temporal object to convert, not null
148
- * @return the zone-offset, not null
149
- * @throws DateTimeException if unable to convert to an {@code ZoneOffset}
150
- */
151
- from(temporal: TemporalAccessor): ZoneOffset;
152
-
153
- /**
154
- * Obtains an instance of {@code ZoneOffset} specifying the total offset in seconds
155
- * <p>
156
- * The offset must be in the range {@code -18:00} to {@code +18:00}, which corresponds to -64800 to +64800.
157
- * @param totalSeconds the total time-zone offset in seconds, from -64800 to +64800
158
- * @return the ZoneOffset, not null
159
- * @throws DateTimeException if the offset is not in the required range
160
- */
161
- ofTotalSeconds(totalSeconds: number): ZoneOffset;
162
-
163
60
  /**
164
61
  * Gets the total zone offset in seconds.
165
62
  * <p>
@@ -5,12 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- of: function of() {},
9
- ofHours: function ofHours() {},
10
- ofHoursMinutes: function ofHoursMinutes() {},
11
- ofHoursMinutesSeconds: function ofHoursMinutesSeconds() {},
12
- from: function from() {},
13
- ofTotalSeconds: function ofTotalSeconds() {},
14
8
  getTotalSeconds: function getTotalSeconds() {},
15
9
  getId: function getId() {},
16
10
  getRules: function getRules() {},