@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitevision/api",
3
- "version": "2023.2.2-beta.1",
3
+ "version": "2023.2.2-beta.3",
4
4
  "author": "Sitevision AB",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -979,7 +979,7 @@ export interface ArraysInstance {
979
979
  * @param anArray the array by which the list will be backed
980
980
  * @return a list view of the specified array
981
981
  */
982
- asList(anArray: unknown[]): List;
982
+ asList(...anArray: unknown[]): List;
983
983
 
984
984
  /**
985
985
  * Returns a hash code based on the contents of the specified array.
@@ -523,7 +523,7 @@ export interface CollectionsInstance {
523
523
  * @throws NullPointerException if <tt>aValues</tt> contains one or more null values and <tt>aCollection</tt> does not permit null&#xA; elements, or if <tt>aCollection</tt> or <tt>aValues</tt> are <tt>null</tt>
524
524
  * @throws IllegalArgumentException if some property of a value in <tt>aValues</tt> prevents it from being added to <tt>aCollection</tt>
525
525
  */
526
- addAll(aCollection: Collection | unknown[], aValues: unknown[]): boolean;
526
+ addAll(aCollection: Collection | unknown[], ...aValues: unknown[]): boolean;
527
527
 
528
528
  /**
529
529
  * Returns a set backed by the specified map.
@@ -1467,7 +1467,7 @@ export interface NodeTypeUtil extends NodeTypeUtilConstants {
1467
1467
  * @param aPrimaryNodeTypes the primary node type names <code>aNode</code> should be checked against
1468
1468
  * @return whether primary node type of <code>aNode</code> matches any of the types in <code>aPrimaryNodeTypes</code>
1469
1469
  */
1470
- isTypeOf(aNode: Node, aPrimaryNodeTypes: String | string[]): boolean;
1470
+ isTypeOf(aNode: Node, ...aPrimaryNodeTypes: String[] | string[]): boolean;
1471
1471
  }
1472
1472
 
1473
1473
  declare namespace NodeTypeUtil {}
@@ -358,7 +358,7 @@ export interface PermissionUtil {
358
358
  * @see #hasPermissions(Node, Node, Permission...)
359
359
  * @since Sitevision 3.6
360
360
  */
361
- hasPermissions(aPermissions: Permission[]): boolean;
361
+ hasPermissions(...aPermissions: Permission[]): boolean;
362
362
 
363
363
  /**
364
364
  * Checks if current user has certain permission on a certain tree node.
@@ -380,7 +380,7 @@ export interface PermissionUtil {
380
380
  * @see #hasPermissions(Node, Node, Permission...)
381
381
  * @since Sitevision 3.6
382
382
  */
383
- hasPermissions(aTreeNode: Node, aPermissions: Permission[]): boolean;
383
+ hasPermissions(aTreeNode: Node, ...aPermissions: Permission[]): boolean;
384
384
 
385
385
  /**
386
386
  * Checks if a certain user has a certain permission on a certain tree node.
@@ -411,7 +411,7 @@ export interface PermissionUtil {
411
411
  hasPermissions(
412
412
  aTreeNode: Node,
413
413
  aUserNode: Node,
414
- aPermissions: Permission[]
414
+ ...aPermissions: Permission[]
415
415
  ): boolean;
416
416
  }
417
417
 
@@ -112,7 +112,10 @@ export interface Properties {
112
112
  * @throws Exception if the scripting engine fails to convert property values to a native Javascript object
113
113
  * @see #getEscaped(Object, String...)
114
114
  */
115
- get(aJcrNodeResolvable: unknown, aPropertyNames: String | string[]): unknown;
115
+ get(
116
+ aJcrNodeResolvable: unknown,
117
+ ...aPropertyNames: String[] | string[]
118
+ ): unknown;
116
119
 
117
120
  /**
118
121
  * Gets escaped named properties from a given Node-resolvable object.
@@ -128,7 +131,7 @@ export interface Properties {
128
131
  */
129
132
  getEscaped(
130
133
  aJcrNodeResolvable: unknown,
131
- aPropertyNames: String | string[]
134
+ ...aPropertyNames: String[] | string[]
132
135
  ): unknown;
133
136
 
134
137
  /**
@@ -151,7 +154,7 @@ export interface Properties {
151
154
  * @see #getArrayEscaped(Object, String...)
152
155
  * @since Sitevision 6.1
153
156
  */
154
- getArray(aIterable: unknown, aPropertyNames: String | string[]): unknown;
157
+ getArray(aIterable: unknown, ...aPropertyNames: String[] | string[]): unknown;
155
158
 
156
159
  /**
157
160
  * Processes an iterable object and returns an array of escaped named properties for each Node-resolvable object that is iterated.
@@ -167,7 +170,7 @@ export interface Properties {
167
170
  */
168
171
  getArrayEscaped(
169
172
  aIterable: unknown,
170
- aPropertyNames: String | string[]
173
+ ...aPropertyNames: String[] | string[]
171
174
  ): unknown;
172
175
  }
173
176
 
@@ -89,7 +89,7 @@ export interface TagUtil {
89
89
  * @throws IllegalArgumentException if aTaggableNode is null or an unsupported type,&#xA; or if or aTagNodes is null, empty or contains an unsupported type
90
90
  * @throws RepositoryException if mutation is not allowed or fails
91
91
  */
92
- addTags(aTaggableNode: Node, aTagNodes: Node[]): void;
92
+ addTags(aTaggableNode: Node, ...aTagNodes: Node[]): void;
93
93
 
94
94
  /**
95
95
  * Removes a sv:tag from a Node.
@@ -748,45 +748,6 @@ export type File = Object &
748
748
  */
749
749
  canExecute(): boolean;
750
750
 
751
- /**
752
- * List the available filesystem roots.
753
- *
754
- * <p> A particular Java platform may support zero or more
755
- * hierarchically-organized file systems. Each file system has a
756
- * {@code root} directory from which all other files in that file system
757
- * can be reached. Windows platforms, for example, have a root directory
758
- * for each active drive; UNIX platforms have a single root directory,
759
- * namely {@code "/"}. The set of available filesystem roots is affected
760
- * by various system-level operations such as the insertion or ejection of
761
- * removable media and the disconnecting or unmounting of physical or
762
- * virtual disk drives.
763
- *
764
- * <p> This method returns an array of {@code File} objects that denote the
765
- * root directories of the available filesystem roots. It is guaranteed
766
- * that the canonical pathname of any file physically present on the local
767
- * machine will begin with one of the roots returned by this method.
768
- *
769
- * <p> The canonical pathname of a file that resides on some other machine
770
- * and is accessed via a remote-filesystem protocol such as SMB or NFS may
771
- * or may not begin with one of the roots returned by this method. If the
772
- * pathname of a remote file is syntactically indistinguishable from the
773
- * pathname of a local file then it will begin with one of the roots
774
- * returned by this method. Thus, for example, {@code File} objects
775
- * denoting the root directories of the mapped network drives of a Windows
776
- * platform will be returned by this method, while {@code File} objects
777
- * containing UNC pathnames will not be returned by this method.
778
- *
779
- * <p> Unlike most methods in this class, this method does not throw
780
- * security exceptions. If a security manager exists and its {@link
781
- * SecurityManager#checkRead(String)} method denies read access to a
782
- * particular root directory, then that directory will not appear in the
783
- * result.
784
- * @return An array of {@code File} objects denoting the available&#xA; filesystem roots, or {@code null} if the set of roots could not&#xA; be determined. The array will be empty if there are no&#xA; filesystem roots.
785
- * @since 1.2
786
- * @see java.nio.file.FileStore
787
- */
788
- listRoots(): File;
789
-
790
751
  /**
791
752
  * Returns the size of the partition <a href="#partName">named</a> by this
792
753
  * abstract pathname.
@@ -835,87 +796,6 @@ export type File = Object &
835
796
  */
836
797
  getUsableSpace(): number;
837
798
 
838
- /**
839
- * <p> Creates a new empty file in the specified directory, using the
840
- * given prefix and suffix strings to generate its name. If this method
841
- * returns successfully then it is guaranteed that:
842
- *
843
- * <ol>
844
- * <li> The file denoted by the returned abstract pathname did not exist
845
- * before this method was invoked, and
846
- * <li> Neither this method nor any of its variants will return the same
847
- * abstract pathname again in the current invocation of the virtual
848
- * machine.
849
- * </ol>
850
- *
851
- * This method provides only part of a temporary-file facility. To arrange
852
- * for a file created by this method to be deleted automatically, use the
853
- * <code>{@link #deleteOnExit}</code> method.
854
- *
855
- * <p> The <code>prefix</code> argument must be at least three characters
856
- * long. It is recommended that the prefix be a short, meaningful string
857
- * such as <code>"hjb"</code> or <code>"mail"</code>. The
858
- * <code>suffix</code> argument may be <code>null</code>, in which case the
859
- * suffix <code>".tmp"</code> will be used.
860
- *
861
- * <p> To create the new file, the prefix and the suffix may first be
862
- * adjusted to fit the limitations of the underlying platform. If the
863
- * prefix is too long then it will be truncated, but its first three
864
- * characters will always be preserved. If the suffix is too long then it
865
- * too will be truncated, but if it begins with a period character
866
- * (<code>'.'</code>) then the period and the first three characters
867
- * following it will always be preserved. Once these adjustments have been
868
- * made the name of the new file will be generated by concatenating the
869
- * prefix, five or more internally-generated characters, and the suffix.
870
- *
871
- * <p> If the <code>directory</code> argument is <code>null</code> then the
872
- * system-dependent default temporary-file directory will be used. The
873
- * default temporary-file directory is specified by the system property
874
- * <code>java.io.tmpdir</code>. On UNIX systems the default value of this
875
- * property is typically <code>"/tmp"</code> or <code>"/var/tmp"</code>; on
876
- * Microsoft Windows systems it is typically <code>"C:\\WINNT\\TEMP"</code>. A different
877
- * value may be given to this system property when the Java virtual machine
878
- * is invoked, but programmatic changes to this property are not guaranteed
879
- * to have any effect upon the temporary directory used by this method.
880
- * @param prefix The prefix string to be used in generating the file's&#xA; name; must be at least three characters long
881
- * @param suffix The suffix string to be used in generating the file's&#xA; name; may be <code>null</code>, in which case the&#xA; suffix <code>".tmp"</code> will be used
882
- * @param directory The directory in which the file is to be created, or&#xA; <code>null</code> if the default temporary-file&#xA; directory is to be used
883
- * @return An abstract pathname denoting a newly-created empty file
884
- * @throws IllegalArgumentException&#xA; If the <code>prefix</code> argument contains fewer than three&#xA; characters
885
- * @throws IOException If a file could not be created
886
- * @throws SecurityException&#xA; If a security manager exists and its <code>{@link&#xA; java.lang.SecurityManager#checkWrite(java.lang.String)}</code>&#xA; method does not allow a file to be created
887
- * @since 1.2
888
- */
889
- createTempFile(
890
- prefix: String | string,
891
- suffix: String | string,
892
- directory: File
893
- ): File;
894
-
895
- /**
896
- * Creates an empty file in the default temporary-file directory, using
897
- * the given prefix and suffix to generate its name. Invoking this method
898
- * is equivalent to invoking <code>{@link #createTempFile(java.lang.String,
899
- * java.lang.String, java.io.File)
900
- * createTempFile(prefix,&nbsp;suffix,&nbsp;null)}</code>.
901
- *
902
- * <p> The {@link
903
- * java.nio.file.Files#createTempFile(String,String,java.nio.file.attribute.FileAttribute[])
904
- * Files.createTempFile} method provides an alternative method to create an
905
- * empty file in the temporary-file directory. Files created by that method
906
- * may have more restrictive access permissions to files created by this
907
- * method and so may be more suited to security-sensitive applications.
908
- * @param prefix The prefix string to be used in generating the file's&#xA; name; must be at least three characters long
909
- * @param suffix The suffix string to be used in generating the file's&#xA; name; may be <code>null</code>, in which case the&#xA; suffix <code>".tmp"</code> will be used
910
- * @return An abstract pathname denoting a newly-created empty file
911
- * @throws IllegalArgumentException&#xA; If the <code>prefix</code> argument contains fewer than three&#xA; characters
912
- * @throws IOException If a file could not be created
913
- * @throws SecurityException&#xA; If a security manager exists and its <code>{@link&#xA; java.lang.SecurityManager#checkWrite(java.lang.String)}</code>&#xA; method does not allow a file to be created
914
- * @since 1.2
915
- * @see java.nio.file.Files#createTempDirectory(String,FileAttribute[])
916
- */
917
- createTempFile(prefix: String | string, suffix: String | string): File;
918
-
919
799
  /**
920
800
  * Compares two abstract pathnames lexicographically. The ordering
921
801
  * defined by this method depends upon the underlying system. On UNIX
@@ -38,11 +38,9 @@ var _default = {
38
38
  setReadable: function setReadable() {},
39
39
  setExecutable: function setExecutable() {},
40
40
  canExecute: function canExecute() {},
41
- listRoots: function listRoots() {},
42
41
  getTotalSpace: function getTotalSpace() {},
43
42
  getFreeSpace: function getFreeSpace() {},
44
43
  getUsableSpace: function getUsableSpace() {},
45
- createTempFile: function createTempFile() {},
46
44
  compareTo: function compareTo() {},
47
45
  equals: function equals() {},
48
46
  hashCode: function hashCode() {},
@@ -303,7 +303,7 @@ export type PrintStream = FilterOutputStream &
303
303
  * @return This output stream
304
304
  * @since 1.5
305
305
  */
306
- printf(format: String | string, args: unknown[]): PrintStream;
306
+ printf(format: String | string, ...args: unknown[]): PrintStream;
307
307
 
308
308
  /**
309
309
  * A convenience method to write a formatted string to this output stream
@@ -322,7 +322,7 @@ export type PrintStream = FilterOutputStream &
322
322
  * @return This output stream
323
323
  * @since 1.5
324
324
  */
325
- printf(l: Locale, format: String | string, args: unknown[]): PrintStream;
325
+ printf(l: Locale, format: String | string, ...args: unknown[]): PrintStream;
326
326
 
327
327
  /**
328
328
  * Writes a formatted string to this output stream using the specified
@@ -338,7 +338,7 @@ export type PrintStream = FilterOutputStream &
338
338
  * @return This output stream
339
339
  * @since 1.5
340
340
  */
341
- format(format: String | string, args: unknown[]): PrintStream;
341
+ format(format: String | string, ...args: unknown[]): PrintStream;
342
342
 
343
343
  /**
344
344
  * Writes a formatted string to this output stream using the specified
@@ -351,7 +351,7 @@ export type PrintStream = FilterOutputStream &
351
351
  * @return This output stream
352
352
  * @since 1.5
353
353
  */
354
- format(l: Locale, format: String | string, args: unknown[]): PrintStream;
354
+ format(l: Locale, format: String | string, ...args: unknown[]): PrintStream;
355
355
 
356
356
  /**
357
357
  * Appends the specified character sequence to this output stream.
@@ -294,7 +294,7 @@ export type PrintWriter = Writer & {
294
294
  * @return This writer
295
295
  * @since 1.5
296
296
  */
297
- printf(format: String | string, args: unknown[]): PrintWriter;
297
+ printf(format: String | string, ...args: unknown[]): PrintWriter;
298
298
 
299
299
  /**
300
300
  * A convenience method to write a formatted string to this writer using
@@ -314,7 +314,7 @@ export type PrintWriter = Writer & {
314
314
  * @return This writer
315
315
  * @since 1.5
316
316
  */
317
- printf(l: Locale, format: String | string, args: unknown[]): PrintWriter;
317
+ printf(l: Locale, format: String | string, ...args: unknown[]): PrintWriter;
318
318
 
319
319
  /**
320
320
  * Writes a formatted string to this writer using the specified format
@@ -331,7 +331,7 @@ export type PrintWriter = Writer & {
331
331
  * @return This writer
332
332
  * @since 1.5
333
333
  */
334
- format(format: String | string, args: unknown[]): PrintWriter;
334
+ format(format: String | string, ...args: unknown[]): PrintWriter;
335
335
 
336
336
  /**
337
337
  * Writes a formatted string to this writer using the specified format
@@ -345,7 +345,7 @@ export type PrintWriter = Writer & {
345
345
  * @return This writer
346
346
  * @since 1.5
347
347
  */
348
- format(l: Locale, format: String | string, args: unknown[]): PrintWriter;
348
+ format(l: Locale, format: String | string, ...args: unknown[]): PrintWriter;
349
349
 
350
350
  /**
351
351
  * Appends the specified character sequence to this writer.
@@ -22,19 +22,6 @@ import type { Class } from "../Class";
22
22
  export type Boolean = Object &
23
23
  Serializable &
24
24
  Comparable & {
25
- /**
26
- * Parses the string argument as a boolean. The {@code boolean}
27
- * returned represents the value {@code true} if the string argument
28
- * is not {@code null} and is equal, ignoring case, to the string
29
- * {@code "true"}. <p>
30
- * Example: {@code Boolean.parseBoolean("True")} returns {@code true}.<br>
31
- * Example: {@code Boolean.parseBoolean("yes")} returns {@code false}.
32
- * @param s the {@code String} containing the boolean&#xA; representation to be parsed
33
- * @return the boolean represented by the string argument
34
- * @since 1.5
35
- */
36
- parseBoolean(s: String | string): boolean;
37
-
38
25
  /**
39
26
  * Returns the value of this {@code Boolean} object as a boolean
40
27
  * primitive.
@@ -42,42 +29,6 @@ export type Boolean = Object &
42
29
  */
43
30
  booleanValue(): boolean;
44
31
 
45
- /**
46
- * Returns a {@code Boolean} instance representing the specified
47
- * {@code boolean} value. If the specified {@code boolean} value
48
- * is {@code true}, this method returns {@code Boolean.TRUE};
49
- * if it is {@code false}, this method returns {@code Boolean.FALSE}.
50
- * If a new {@code Boolean} instance is not required, this method
51
- * should generally be used in preference to the constructor
52
- * {@link #Boolean(boolean)}, as this method is likely to yield
53
- * significantly better space and time performance.
54
- * @param b a boolean value.
55
- * @return a {@code Boolean} instance representing {@code b}.
56
- * @since 1.4
57
- */
58
- valueOf(b: boolean): boolean;
59
-
60
- /**
61
- * Returns a {@code Boolean} with a value represented by the
62
- * specified string. The {@code Boolean} returned represents a
63
- * true value if the string argument is not {@code null}
64
- * and is equal, ignoring case, to the string {@code "true"}.
65
- * @param s a string.
66
- * @return the {@code Boolean} value represented by the string.
67
- */
68
- valueOf(s: String | string): boolean;
69
-
70
- /**
71
- * Returns a {@code String} object representing the specified
72
- * boolean. If the specified boolean is {@code true}, then
73
- * the string {@code "true"} will be returned, otherwise the
74
- * string {@code "false"} will be returned.
75
- * @param b the boolean to be converted
76
- * @return the string representation of the specified {@code boolean}
77
- * @since 1.4
78
- */
79
- toString(b: boolean): string;
80
-
81
32
  /**
82
33
  * Returns a {@code String} object representing this Boolean's
83
34
  * value. If this object represents the value {@code true},
@@ -93,15 +44,6 @@ export type Boolean = Object &
93
44
  */
94
45
  hashCode(): number;
95
46
 
96
- /**
97
- * Returns a hash code for a {@code boolean} value; compatible with
98
- * {@code Boolean.hashCode()}.
99
- * @param value the value to hash
100
- * @return a hash code value for a {@code boolean} value.
101
- * @since 1.8
102
- */
103
- hashCode(value: boolean): number;
104
-
105
47
  /**
106
48
  * Returns {@code true} if and only if the argument is not
107
49
  * {@code null} and is a {@code Boolean} object that
@@ -111,25 +53,6 @@ export type Boolean = Object &
111
53
  */
112
54
  equals(obj: unknown): boolean;
113
55
 
114
- /**
115
- * Returns {@code true} if and only if the system property
116
- * named by the argument exists and is equal to the string
117
- * {@code "true"}. (Beginning with version 1.0.2 of the
118
- * Java<small><sup>TM</sup></small> platform, the test of
119
- * this string is case insensitive.) A system property is accessible
120
- * through {@code getProperty}, a method defined by the
121
- * {@code System} class.
122
- * <p>
123
- * If there is no property with the specified name, or if the specified
124
- * name is empty or null, then {@code false} is returned.
125
- * @param name the system property name.
126
- * @return the {@code boolean} value of the system property.
127
- * @throws SecurityException for the same reasons as&#xA; {@link System#getProperty(String) System.getProperty}
128
- * @see java.lang.System#getProperty(java.lang.String)
129
- * @see java.lang.System#getProperty(java.lang.String, java.lang.String)
130
- */
131
- getBoolean(name: String | string): boolean;
132
-
133
56
  /**
134
57
  * Compares this {@code Boolean} instance with another.
135
58
  * @param b the {@code Boolean} instance to be compared
@@ -140,52 +63,6 @@ export type Boolean = Object &
140
63
  */
141
64
  compareTo(b: boolean): number;
142
65
 
143
- /**
144
- * Compares two {@code boolean} values.
145
- * The value returned is identical to what would be returned by:
146
- * <pre>
147
- * Boolean.valueOf(x).compareTo(Boolean.valueOf(y))
148
- * </pre>
149
- * @param x the first {@code boolean} to compare
150
- * @param y the second {@code boolean} to compare
151
- * @return the value {@code 0} if {@code x == y};&#xA; a value less than {@code 0} if {@code !x && y}; and&#xA; a value greater than {@code 0} if {@code x && !y}
152
- * @since 1.7
153
- */
154
- compare(x: boolean, y: boolean): number;
155
-
156
- /**
157
- * Returns the result of applying the logical AND operator to the
158
- * specified {@code boolean} operands.
159
- * @param a the first operand
160
- * @param b the second operand
161
- * @return the logical AND of {@code a} and {@code b}
162
- * @see java.util.function.BinaryOperator
163
- * @since 1.8
164
- */
165
- logicalAnd(a: boolean, b: boolean): boolean;
166
-
167
- /**
168
- * Returns the result of applying the logical OR operator to the
169
- * specified {@code boolean} operands.
170
- * @param a the first operand
171
- * @param b the second operand
172
- * @return the logical OR of {@code a} and {@code b}
173
- * @see java.util.function.BinaryOperator
174
- * @since 1.8
175
- */
176
- logicalOr(a: boolean, b: boolean): boolean;
177
-
178
- /**
179
- * Returns the result of applying the logical XOR operator to the
180
- * specified {@code boolean} operands.
181
- * @param a the first operand
182
- * @param b the second operand
183
- * @return the logical XOR of {@code a} and {@code b}
184
- * @see java.util.function.BinaryOperator
185
- * @since 1.8
186
- */
187
- logicalXor(a: boolean, b: boolean): boolean;
188
-
189
66
  /**
190
67
  * The {@code Boolean} object corresponding to the primitive
191
68
  * value {@code true}.
@@ -5,17 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- parseBoolean: function parseBoolean() {},
9
8
  booleanValue: function booleanValue() {},
10
- valueOf: function valueOf() {},
11
9
  toString: function toString() {},
12
10
  hashCode: function hashCode() {},
13
11
  equals: function equals() {},
14
- getBoolean: function getBoolean() {},
15
- compareTo: function compareTo() {},
16
- compare: function compare() {},
17
- logicalAnd: function logicalAnd() {},
18
- logicalOr: function logicalOr() {},
19
- logicalXor: function logicalXor() {}
12
+ compareTo: function compareTo() {}
20
13
  };
21
14
  exports["default"] = _default;
@@ -1,8 +1,8 @@
1
1
  import type { String } from "../String";
2
2
 
3
- import type { ClassLoader } from "../ClassLoader";
4
-
5
3
  import type { Object } from "../Object";
4
+
5
+ import type { ClassLoader } from "../ClassLoader";
6
6
  import type { TypeVariable } from "../reflect/TypeVariable";
7
7
  import type { Type } from "../reflect/Type";
8
8
  import type { Package } from "../Package";
@@ -102,97 +102,6 @@ export type Class = Object &
102
102
  */
103
103
  toGenericString(): string;
104
104
 
105
- /**
106
- * Returns the {@code Class} object associated with the class or
107
- * interface with the given string name. Invoking this method is
108
- * equivalent to:
109
- *
110
- * <blockquote>
111
- * {@code Class.forName(className, true, currentLoader)}
112
- * </blockquote>
113
- *
114
- * where {@code currentLoader} denotes the defining class loader of
115
- * the current class.
116
- *
117
- * <p> For example, the following code fragment returns the
118
- * runtime {@code Class} descriptor for the class named
119
- * {@code java.lang.Thread}:
120
- *
121
- * <blockquote>
122
- * {@code Class t = Class.forName("java.lang.Thread")}
123
- * </blockquote>
124
- * <p>
125
- * A call to {@code forName("X")} causes the class named
126
- * {@code X} to be initialized.
127
- * @param className the fully qualified name of the desired class.
128
- * @return the {@code Class} object for the class with the&#xA; specified name.
129
- * @throws LinkageError if the linkage fails
130
- * @throws ExceptionInInitializerError if the initialization provoked&#xA; by this method fails
131
- * @throws ClassNotFoundException if the class cannot be located
132
- */
133
- forName(className: String | string): Class;
134
-
135
- /**
136
- * Returns the {@code Class} object associated with the class or
137
- * interface with the given string name, using the given class loader.
138
- * Given the fully qualified name for a class or interface (in the same
139
- * format returned by {@code getName}) this method attempts to
140
- * locate, load, and link the class or interface. The specified class
141
- * loader is used to load the class or interface. If the parameter
142
- * {@code loader} is null, the class is loaded through the bootstrap
143
- * class loader. The class is initialized only if the
144
- * {@code initialize} parameter is {@code true} and if it has
145
- * not been initialized earlier.
146
- *
147
- * <p> If {@code name} denotes a primitive type or void, an attempt
148
- * will be made to locate a user-defined class in the unnamed package whose
149
- * name is {@code name}. Therefore, this method cannot be used to
150
- * obtain any of the {@code Class} objects representing primitive
151
- * types or void.
152
- *
153
- * <p> If {@code name} denotes an array class, the component type of
154
- * the array class is loaded but not initialized.
155
- *
156
- * <p> For example, in an instance method the expression:
157
- *
158
- * <blockquote>
159
- * {@code Class.forName("Foo")}
160
- * </blockquote>
161
- *
162
- * is equivalent to:
163
- *
164
- * <blockquote>
165
- * {@code Class.forName("Foo", true, this.getClass().getClassLoader())}
166
- * </blockquote>
167
- *
168
- * Note that this method throws errors related to loading, linking or
169
- * initializing as specified in Sections 12.2, 12.3 and 12.4 of <em>The
170
- * Java Language Specification</em>.
171
- * Note that this method does not check whether the requested class
172
- * is accessible to its caller.
173
- *
174
- * <p> If the {@code loader} is {@code null}, and a security
175
- * manager is present, and the caller's class loader is not null, then this
176
- * method calls the security manager's {@code checkPermission} method
177
- * with a {@code RuntimePermission("getClassLoader")} permission to
178
- * ensure it's ok to access the bootstrap class loader.
179
- * @param name fully qualified name of the desired class
180
- * @param initialize if {@code true} the class will be initialized.&#xA; See Section 12.4 of <em>The Java Language Specification</em>.
181
- * @param loader class loader from which the class must be loaded
182
- * @return class object representing the desired class
183
- * @throws LinkageError if the linkage fails
184
- * @throws ExceptionInInitializerError if the initialization provoked&#xA; by this method fails
185
- * @throws ClassNotFoundException if the class cannot be located by&#xA; the specified class loader
186
- * @see java.lang.Class#forName(String)
187
- * @see java.lang.ClassLoader
188
- * @since 1.2
189
- */
190
- forName(
191
- name: String | string,
192
- initialize: boolean,
193
- loader: ClassLoader
194
- ): Class;
195
-
196
105
  /**
197
106
  * Creates a new instance of the class represented by this {@code Class}
198
107
  * object. The class is instantiated as if by a {@code new}
@@ -916,7 +825,7 @@ export type Class = Object &
916
825
  * @jls 8.4 Method Declarations
917
826
  * @since JDK1.1
918
827
  */
919
- getMethod(name: String | string, parameterTypes: Class[]): Method;
828
+ getMethod(name: String | string, ...parameterTypes: Class[]): Method;
920
829
 
921
830
  /**
922
831
  * Returns a {@code Constructor} object that reflects the specified
@@ -938,7 +847,7 @@ export type Class = Object &
938
847
  * @throws SecurityException&#xA; If a security manager, <i>s</i>, is present and&#xA; the caller's class loader is not the same as or an&#xA; ancestor of the class loader for the current class and&#xA; invocation of {@link SecurityManager#checkPackageAccess&#xA; s.checkPackageAccess()} denies access to the package&#xA; of this class.
939
848
  * @since JDK1.1
940
849
  */
941
- getConstructor(parameterTypes: Class[]): Constructor;
850
+ getConstructor(...parameterTypes: Class[]): Constructor;
942
851
 
943
852
  /**
944
853
  * Returns an array of {@code Class} objects reflecting all the
@@ -1071,7 +980,10 @@ export type Class = Object &
1071
980
  * @jls 8.4 Method Declarations
1072
981
  * @since JDK1.1
1073
982
  */
1074
- getDeclaredMethod(name: String | string, parameterTypes: Class[]): Method;
983
+ getDeclaredMethod(
984
+ name: String | string,
985
+ ...parameterTypes: Class[]
986
+ ): Method;
1075
987
 
1076
988
  /**
1077
989
  * Returns a {@code Constructor} object that reflects the specified
@@ -1089,7 +1001,7 @@ export type Class = Object &
1089
1001
  * @throws SecurityException&#xA; If a security manager, <i>s</i>, is present and any of the&#xA; following conditions is met:&#xA;&#xA; <ul>&#xA;&#xA; <li> the caller's class loader is not the same as the&#xA; class loader of this class and invocation of&#xA; {@link SecurityManager#checkPermission&#xA; s.checkPermission} method with&#xA; {@code RuntimePermission("accessDeclaredMembers")}&#xA; denies access to the declared constructor&#xA;&#xA; <li> the caller's class loader is not the same as or an&#xA; ancestor of the class loader for the current class and&#xA; invocation of {@link SecurityManager#checkPackageAccess&#xA; s.checkPackageAccess()} denies access to the package&#xA; of this class&#xA;&#xA; </ul>
1090
1002
  * @since JDK1.1
1091
1003
  */
1092
- getDeclaredConstructor(parameterTypes: Class[]): Constructor;
1004
+ getDeclaredConstructor(...parameterTypes: Class[]): Constructor;
1093
1005
 
1094
1006
  /**
1095
1007
  * Finds a resource with a given name. The rules for searching resources
@@ -7,7 +7,6 @@ exports["default"] = void 0;
7
7
  var _default = {
8
8
  toString: function toString() {},
9
9
  toGenericString: function toGenericString() {},
10
- forName: function forName() {},
11
10
  newInstance: function newInstance() {},
12
11
  isInstance: function isInstance() {},
13
12
  isAssignableFrom: function isAssignableFrom() {},