@sitevision/api 2.0.0-alpha.1 → 2023.2.1-alpha.0

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 (280) hide show
  1. package/client/requester/index.d.ts +10 -8
  2. package/client/toasts/index.d.ts +7 -5
  3. package/common/app/index.d.ts +45 -46
  4. package/common/events/index.d.ts +30 -31
  5. package/common/i18n/index.d.ts +7 -5
  6. package/common/router/index.d.ts +72 -77
  7. package/common/security/index.d.ts +27 -21
  8. package/index.d.ts +8 -0
  9. package/package.json +1 -1
  10. package/server/AliasUtil/index.d.ts +11 -9
  11. package/server/ArchiveUtil/index.d.ts +43 -41
  12. package/server/ArraysInstance/index.d.ts +1666 -1807
  13. package/server/ArticleUtil/index.d.ts +292 -224
  14. package/server/AuthenticationUtil/index.d.ts +72 -84
  15. package/server/BookmarkUtil/index.d.ts +74 -79
  16. package/server/BuddyIconRenderer/index.d.ts +123 -131
  17. package/server/BuddyIconRenderer.BuddyIconSize/index.d.ts +41 -0
  18. package/server/BuddyIconRenderer.BuddyIconSize/index.js +25 -0
  19. package/server/ClientUtil/index.d.ts +10 -8
  20. package/server/CollaborationFactory/index.d.ts +37 -40
  21. package/server/CollaborationGroupFolderUtil/index.d.ts +28 -26
  22. package/server/CollaborationGroupState/index.d.ts +27 -0
  23. package/server/CollaborationGroupState/index.js +11 -0
  24. package/server/CollaborationGroupTemplateUtil/index.d.ts +46 -48
  25. package/server/CollaborationGroupType/index.d.ts +28 -0
  26. package/server/CollaborationGroupType/index.js +12 -0
  27. package/server/CollaborationGroupUtil/index.d.ts +84 -80
  28. package/server/CollectionsInstance/index.d.ts +641 -704
  29. package/server/ColorUtil/index.d.ts +34 -35
  30. package/server/CompoundAndFilterBuilder/index.d.ts +28 -26
  31. package/server/CompoundComparatorBuilder/index.d.ts +33 -31
  32. package/server/CompoundOrFilterBuilder/index.d.ts +28 -26
  33. package/server/ContentNodeUtil/index.d.ts +34 -32
  34. package/server/CurrencyFactory/index.d.ts +70 -68
  35. package/server/DateUtil/index.d.ts +131 -141
  36. package/server/DecorationUtil/index.d.ts +11 -9
  37. package/server/DeviceUtil/index.d.ts +19 -17
  38. package/server/DimensionMode/index.d.ts +17 -0
  39. package/server/DimensionMode/index.js +12 -0
  40. package/server/DirectoryUtil/index.d.ts +87 -85
  41. package/server/DocType/index.d.ts +30 -0
  42. package/server/DocType/index.js +14 -0
  43. package/server/DocTypeUtil/index.d.ts +127 -133
  44. package/server/EndecUtil/index.d.ts +329 -346
  45. package/server/ExtendedDismaxParserBuilder/index.d.ts +153 -167
  46. package/server/FileIconRenderer/index.d.ts +152 -171
  47. package/server/FileUtil/index.d.ts +272 -298
  48. package/server/FilterBuilder/index.d.ts +39 -37
  49. package/server/FolderUtil/index.d.ts +91 -92
  50. package/server/FontUtil/index.d.ts +34 -35
  51. package/server/FormatterBuilderFactory/index.d.ts +73 -81
  52. package/server/HighlightBuilder/index.d.ts +76 -83
  53. package/server/IconUtil/index.d.ts +25 -23
  54. package/server/ImageLinkRenderer/index.d.ts +35 -33
  55. package/server/ImageRenderer/index.d.ts +340 -376
  56. package/server/ImageUtil/index.d.ts +245 -263
  57. package/server/IndexUtil/index.d.ts +38 -35
  58. package/server/IndexUtil.IndexType/index.d.ts +29 -0
  59. package/server/IndexUtil.IndexType/index.js +13 -0
  60. package/server/IndexingUtil/index.d.ts +67 -45
  61. package/server/InstanceCreatorUtil/index.d.ts +423 -459
  62. package/server/InstanceTypeUtil/index.d.ts +167 -188
  63. package/server/JwtUtil/index.d.ts +129 -127
  64. package/server/LandingPageUtil/index.d.ts +82 -85
  65. package/server/LandingPageUtil/index.js +1 -0
  66. package/server/LinkPageUtil/index.d.ts +294 -248
  67. package/server/LinkRenderer/index.d.ts +649 -713
  68. package/server/LinkTargetBuilder/index.d.ts +65 -73
  69. package/server/LinkValueBuilder/index.d.ts +66 -73
  70. package/server/ListWrapper/index.d.ts +80 -89
  71. package/server/LocaleUtil/index.d.ts +381 -393
  72. package/server/LogUtil/index.d.ts +118 -127
  73. package/server/MailBuilder/index.d.ts +106 -121
  74. package/server/MailUtil/index.d.ts +58 -63
  75. package/server/MathInstance/index.d.ts +624 -656
  76. package/server/MessageDigesterFactory/index.d.ts +28 -26
  77. package/server/MetadataDefinitionUtil/index.d.ts +77 -81
  78. package/server/MetadataUtil/index.d.ts +321 -345
  79. package/server/MimeTypeUtil/index.d.ts +208 -214
  80. package/server/MonitorBuilder/index.d.ts +17 -17
  81. package/server/NodeComparatorUtil/index.d.ts +214 -224
  82. package/server/NodeFactoryUtil/index.d.ts +19 -17
  83. package/server/NodeFilterUtil/index.d.ts +651 -738
  84. package/server/NodeIteratorUtil/index.d.ts +209 -224
  85. package/server/NodeResolverUtil/index.d.ts +398 -404
  86. package/server/NodeTreeUtil/index.d.ts +211 -226
  87. package/server/NodeTypeUtil/index.d.ts +1430 -546
  88. package/server/OfflineVersionPropertyUtil/index.d.ts +6 -4
  89. package/server/OnlineVersionPropertyUtil/index.d.ts +6 -4
  90. package/server/OutputUtil/index.d.ts +384 -379
  91. package/server/PageUtil/index.d.ts +264 -186
  92. package/server/PermissionUtil/index.d.ts +391 -428
  93. package/server/PermissionUtil.Permission/index.d.ts +54 -0
  94. package/server/PermissionUtil.Permission/index.js +38 -0
  95. package/server/PortletContextUtil/index.d.ts +111 -106
  96. package/server/PortletUtil/index.d.ts +30 -20
  97. package/server/PrincipalUtil/index.d.ts +33 -31
  98. package/server/Properties/index.d.ts +68 -75
  99. package/server/PropertyUtil/index.d.ts +1419 -1461
  100. package/server/PublishingUtil/index.d.ts +246 -247
  101. package/server/QueryStringUtil/index.d.ts +403 -414
  102. package/server/RedirectUtil/index.d.ts +62 -66
  103. package/server/RelatedValueBuilder/index.d.ts +40 -38
  104. package/server/Requester/index.d.ts +123 -123
  105. package/server/ResourceLocatorUtil/index.d.ts +434 -474
  106. package/server/RestApi/index.d.ts +156 -136
  107. package/server/RestAppInvokerFactory/index.d.ts +25 -23
  108. package/server/RoleAssignmentBuilder/index.d.ts +35 -33
  109. package/server/RoleMatcherBuilder/index.d.ts +35 -33
  110. package/server/RoleUtil/index.d.ts +35 -37
  111. package/server/ScriptUtil/index.d.ts +457 -494
  112. package/server/SearchFactory/index.d.ts +102 -117
  113. package/server/SearchUtil/index.d.ts +73 -71
  114. package/server/SearcherBuilder/index.d.ts +107 -114
  115. package/server/Session/index.d.ts +251 -1093
  116. package/server/Session/index.js +1 -20
  117. package/server/SimpleUserUtil/index.d.ts +26 -27
  118. package/server/SiteCookieUtil/index.d.ts +150 -173
  119. package/server/SortBuilder/index.d.ts +24 -22
  120. package/server/SourceSetMode/index.d.ts +12 -0
  121. package/server/SourceSetMode/index.js +12 -0
  122. package/server/SpellCheckBuilder/index.d.ts +27 -27
  123. package/server/StandardParserBuilder/index.d.ts +33 -31
  124. package/server/StructureUtil/index.d.ts +83 -81
  125. package/server/SubscriberUtil/index.d.ts +58 -65
  126. package/server/SubscriptionUtil/index.d.ts +121 -128
  127. package/server/SystemUserUtil/index.d.ts +146 -144
  128. package/server/TagUtil/index.d.ts +113 -118
  129. package/server/TemplateUtil/index.d.ts +113 -118
  130. package/server/TemporaryFileNodeBuilder/index.d.ts +29 -27
  131. package/server/TemporaryNodeBuilder/index.d.ts +136 -174
  132. package/server/TextModuleRendererBuilder/index.d.ts +18 -16
  133. package/server/TimestampUtil/index.d.ts +102 -116
  134. package/server/TranslationUtil/index.d.ts +96 -102
  135. package/server/TrashcanUtil/index.d.ts +112 -115
  136. package/server/UserDataUtil/index.d.ts +108 -109
  137. package/server/UserFactory/index.d.ts +49 -56
  138. package/server/UserFieldRenderer/index.d.ts +118 -126
  139. package/server/UserIdentityUtil/index.d.ts +36 -34
  140. package/server/UserUtil/index.d.ts +30 -28
  141. package/server/Utils/index.d.ts +702 -791
  142. package/server/VelocityRenderer/index.d.ts +94 -92
  143. package/server/VersionUtil/index.d.ts +24 -8
  144. package/server/WebContentUtil/index.d.ts +275 -282
  145. package/server/WebResourceFactory/index.d.ts +46 -51
  146. package/server/XSLTUtil/index.d.ts +33 -31
  147. package/server/XmlParserUtil/index.d.ts +47 -45
  148. package/server/appData/index.d.ts +8 -6
  149. package/server/appInfo/index.d.ts +6 -2
  150. package/server/appResource/index.d.ts +23 -21
  151. package/server/cache/index.d.ts +8 -6
  152. package/server/globalAppData/index.d.ts +8 -6
  153. package/server/headless/index.d.ts +28 -26
  154. package/server/hooks/index.d.ts +9 -9
  155. package/server/oauth2/index.d.ts +12 -10
  156. package/server/privileged/index.d.ts +24 -22
  157. package/server/storage/index.d.ts +22 -20
  158. package/types/javax/jcr/Binary/index.d.ts +0 -20
  159. package/types/javax/jcr/Binary/index.js +0 -1
  160. package/types/javax/jcr/ImportUUIDBehavior/index.d.ts +24 -0
  161. package/types/javax/jcr/Item/index.d.ts +1 -116
  162. package/types/javax/jcr/Item/index.js +0 -6
  163. package/types/javax/jcr/NamespaceRegistry/index.d.ts +66 -42
  164. package/types/javax/jcr/NamespaceRegistry/index.js +0 -2
  165. package/types/javax/jcr/Node/index.d.ts +24 -1495
  166. package/types/javax/jcr/Node/index.js +1 -34
  167. package/types/javax/jcr/NodeIterator/index.d.ts +1 -1
  168. package/types/javax/jcr/Property/index.d.ts +487 -489
  169. package/types/javax/jcr/Property/index.js +0 -5
  170. package/types/javax/jcr/PropertyIterator/index.d.ts +1 -1
  171. package/types/javax/jcr/RangeIterator/index.d.ts +1 -43
  172. package/types/javax/jcr/RangeIterator/index.js +1 -5
  173. package/types/javax/jcr/Repository/index.d.ts +460 -260
  174. package/types/javax/jcr/Repository/index.js +0 -4
  175. package/types/javax/jcr/Value/index.d.ts +0 -29
  176. package/types/javax/jcr/Value/index.js +0 -2
  177. package/types/javax/jcr/ValueFactory/index.d.ts +0 -70
  178. package/types/javax/jcr/ValueFactory/index.js +1 -2
  179. package/types/javax/jcr/Workspace/index.d.ts +93 -569
  180. package/types/javax/jcr/Workspace/index.js +1 -12
  181. package/types/javax/jcr/nodetype/ItemDefinition/index.d.ts +0 -103
  182. package/types/javax/jcr/nodetype/ItemDefinition/index.js +0 -5
  183. package/types/javax/jcr/nodetype/NodeDefinition/index.d.ts +1 -1
  184. package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +1 -1
  185. package/types/javax/jcr/nodetype/NodeType/index.d.ts +255 -264
  186. package/types/javax/jcr/nodetype/NodeType/index.js +1 -12
  187. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +0 -104
  188. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.js +1 -7
  189. package/types/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +1 -1
  190. package/types/javax/jcr/nodetype/NodeTypeManager/index.d.ts +0 -123
  191. package/types/javax/jcr/nodetype/NodeTypeManager/index.js +1 -8
  192. package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +1 -1
  193. package/types/javax/jcr/nodetype/PropertyDefinition/index.d.ts +1 -270
  194. package/types/javax/jcr/nodetype/PropertyDefinition/index.js +1 -7
  195. package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +1 -1
  196. package/types/javax/jcr/observation/Event/index.d.ts +82 -41
  197. package/types/javax/jcr/observation/EventIterator/index.d.ts +1 -1
  198. package/types/javax/jcr/observation/EventJournal/index.d.ts +1 -1
  199. package/types/javax/jcr/observation/EventListenerIterator/index.d.ts +1 -1
  200. package/types/javax/jcr/query/Query/index.d.ts +29 -8
  201. package/types/javax/jcr/query/RowIterator/index.d.ts +1 -1
  202. package/types/javax/jcr/query/qom/And/index.d.ts +1 -1
  203. package/types/javax/jcr/query/qom/BindVariableValue/index.d.ts +1 -1
  204. package/types/javax/jcr/query/qom/ChildNode/index.d.ts +1 -1
  205. package/types/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +1 -1
  206. package/types/javax/jcr/query/qom/Comparison/index.d.ts +1 -1
  207. package/types/javax/jcr/query/qom/DescendantNode/index.d.ts +1 -1
  208. package/types/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +1 -1
  209. package/types/javax/jcr/query/qom/DynamicOperand/index.d.ts +1 -1
  210. package/types/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +1 -1
  211. package/types/javax/jcr/query/qom/FullTextSearch/index.d.ts +1 -1
  212. package/types/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +1 -1
  213. package/types/javax/jcr/query/qom/Join/index.d.ts +1 -1
  214. package/types/javax/jcr/query/qom/Length/index.d.ts +1 -1
  215. package/types/javax/jcr/query/qom/Literal/index.d.ts +1 -1
  216. package/types/javax/jcr/query/qom/LowerCase/index.d.ts +1 -1
  217. package/types/javax/jcr/query/qom/NodeLocalName/index.d.ts +1 -1
  218. package/types/javax/jcr/query/qom/NodeName/index.d.ts +1 -1
  219. package/types/javax/jcr/query/qom/Not/index.d.ts +1 -1
  220. package/types/javax/jcr/query/qom/Or/index.d.ts +1 -1
  221. package/types/javax/jcr/query/qom/PropertyExistence/index.d.ts +1 -1
  222. package/types/javax/jcr/query/qom/PropertyValue/index.d.ts +1 -1
  223. package/types/javax/jcr/query/qom/QueryObjectModel/index.d.ts +1 -1
  224. package/types/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +73 -1
  225. package/types/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +1 -1
  226. package/types/javax/jcr/query/qom/SameNode/index.d.ts +1 -1
  227. package/types/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +1 -1
  228. package/types/javax/jcr/query/qom/Selector/index.d.ts +1 -1
  229. package/types/javax/jcr/query/qom/StaticOperand/index.d.ts +1 -1
  230. package/types/javax/jcr/query/qom/UpperCase/index.d.ts +1 -1
  231. package/types/javax/jcr/security/AccessControlList/index.d.ts +1 -1
  232. package/types/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +1 -1
  233. package/types/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +1 -1
  234. package/types/javax/jcr/security/Privilege/index.d.ts +127 -43
  235. package/types/javax/jcr/version/Version/index.d.ts +1 -1
  236. package/types/javax/jcr/version/VersionHistory/index.d.ts +1 -1
  237. package/types/javax/jcr/version/VersionIterator/index.d.ts +1 -1
  238. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.d.ts +9 -0
  239. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.js +11 -0
  240. package/types/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +9 -5
  241. package/types/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +1 -1
  242. package/types/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +1 -1
  243. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.d.ts +49 -0
  244. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.js +12 -0
  245. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.d.ts +83 -0
  246. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.js +21 -0
  247. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.d.ts +29 -0
  248. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.js +12 -0
  249. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.d.ts +29 -0
  250. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.js +12 -0
  251. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.d.ts +65 -0
  252. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.js +18 -0
  253. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.d.ts +23 -0
  254. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.js +11 -0
  255. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.d.ts +17 -0
  256. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.js +10 -0
  257. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +1241 -0
  258. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +189 -0
  259. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.d.ts +29 -0
  260. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.js +12 -0
  261. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.d.ts +89 -0
  262. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.js +22 -0
  263. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.d.ts +25 -0
  264. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.js +11 -0
  265. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.d.ts +17 -0
  266. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.js +10 -0
  267. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.d.ts +17 -0
  268. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.js +10 -0
  269. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.d.ts +23 -0
  270. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.js +11 -0
  271. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.d.ts +35 -0
  272. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.js +13 -0
  273. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.d.ts +23 -0
  274. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.js +11 -0
  275. package/types/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +2 -2
  276. package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +22 -2
  277. package/types/senselogic/sitevision/api/search/SearchHit/index.d.ts +16 -2
  278. package/types/senselogic/sitevision/api/search/SearchResult/index.d.ts +28 -6
  279. package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +31 -1
  280. package/types/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +1 -1
@@ -1,1789 +1,3 @@
1
- /**
2
- * Sorts the specified array of longs into ascending numerical order.
3
- * @param anArray the array to be sorted
4
- */
5
- export function sort(anArray: number): void;
6
-
7
- /**
8
- * Sorts the specified range of the specified array of longs into
9
- * ascending numerical order.
10
- * @param anArray the array to be sorted
11
- * @param aFromIndex the index of the first element (inclusive) to be sorted
12
- * @param aToIndex the index of the last element (exclusive) to be sorted
13
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
14
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
15
- */
16
- export function sort(
17
- anArray: number,
18
- aFromIndex: number,
19
- aToIndex: number
20
- ): void;
21
-
22
- /**
23
- * Sorts the specified array of ints into ascending numerical order.
24
- * @param anArray the array to be sorted
25
- */
26
- export function sort(anArray: number): void;
27
-
28
- /**
29
- * Sorts the specified range of the specified array of ints into ascending numerical order.
30
- * @param anArray the array to be sorted
31
- * @param aFromIndex the index of the first element (inclusive) to be sorted
32
- * @param aToIndex the index of the last element (exclusive) to be sorted
33
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
34
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
35
- */
36
- export function sort(
37
- anArray: number,
38
- aFromIndex: number,
39
- aToIndex: number
40
- ): void;
41
-
42
- /**
43
- * Sorts the specified array of shorts into ascending numerical order.
44
- * @param anArray the array to be sorted
45
- */
46
- export function sort(anArray: number): void;
47
-
48
- /**
49
- * Sorts the specified range of the specified array of shorts into ascending numerical order.
50
- * @param anArray the array to be sorted
51
- * @param aFromIndex the index of the first element (inclusive) to be sorted
52
- * @param aToIndex the index of the last element (exclusive) to be sorted
53
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
54
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
55
- */
56
- export function sort(
57
- anArray: number,
58
- aFromIndex: number,
59
- aToIndex: number
60
- ): void;
61
-
62
- /**
63
- * Sorts the specified array of chars into ascending numerical order.
64
- * @param anArray the array to be sorted
65
- */
66
- export function sort(anArray: string): void;
67
-
68
- /**
69
- * Sorts the specified range of the specified array of chars into ascending numerical order.
70
- * @param anArray the array to be sorted
71
- * @param aFromIndex the index of the first element (inclusive) to be sorted
72
- * @param aToIndex the index of the last element (exclusive) to be sorted
73
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
74
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
75
- */
76
- export function sort(
77
- anArray: string,
78
- aFromIndex: number,
79
- aToIndex: number
80
- ): void;
81
-
82
- /**
83
- * Sorts the specified array of bytes into ascending numerical order.
84
- * @param anArray the array to be sorted
85
- */
86
- export function sort(anArray: unknown): void;
87
-
88
- /**
89
- * Sorts the specified range of the specified array of bytes into ascending numerical order.
90
- * @param anArray the array to be sorted
91
- * @param aFromIndex the index of the first element (inclusive) to be sorted
92
- * @param aToIndex the index of the last element (exclusive) to be sorted
93
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
94
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
95
- */
96
- export function sort(
97
- anArray: unknown,
98
- aFromIndex: number,
99
- aToIndex: number
100
- ): void;
101
-
102
- /**
103
- * Sorts the specified array of doubles into ascending numerical order.
104
- * @param anArray the array to be sorted
105
- */
106
- export function sort(anArray: number): void;
107
-
108
- /**
109
- * Sorts the specified range of the specified array of doubles into ascending numerical order.
110
- * @param anArray the array to be sorted
111
- * @param aFromIndex the index of the first element (inclusive) to be sorted
112
- * @param aToIndex the index of the last element (exclusive) to be sorted
113
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
114
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
115
- */
116
- export function sort(
117
- anArray: number,
118
- aFromIndex: number,
119
- aToIndex: number
120
- ): void;
121
-
122
- /**
123
- * Sorts the specified array of floats into ascending numerical order.
124
- * @param anArray the array to be sorted
125
- */
126
- export function sort(anArray: number): void;
127
-
128
- /**
129
- * Sorts the specified range of the specified array of floats into ascending numerical order.
130
- * @param anArray the array to be sorted
131
- * @param aFromIndex the index of the first element (inclusive) to be sorted
132
- * @param aToIndex the index of the last element (exclusive) to be sorted
133
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
134
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
135
- */
136
- export function sort(
137
- anArray: number,
138
- aFromIndex: number,
139
- aToIndex: number
140
- ): void;
141
-
142
- /**
143
- * Sorts the specified array of objects into ascending order, according to the <code>Comparable</code> natural ordering of its elements.
144
- * @param anArray the array to be sorted
145
- * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
146
- */
147
- export function sort(anArray: unknown): void;
148
-
149
- /**
150
- * Sorts the specified range of the specified array of objects into ascending order, according to the <code>Comparable</code>
151
- * natural ordering of its elements.
152
- * @param anArray the array to be sorted
153
- * @param aFromIndex the index of the first element (inclusive) to be sorted
154
- * @param aToIndex the index of the last element (exclusive) to be sorted
155
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
156
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
157
- * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
158
- */
159
- export function sort(
160
- anArray: unknown,
161
- aFromIndex: number,
162
- aToIndex: number
163
- ): void;
164
-
165
- /**
166
- * Sorts the specified array of objects according to the order induced by the specified comparator.
167
- * @param <T> the class of the objects to be sorted
168
- * @param anArray the array to be sorted
169
- * @param aComparator the comparator to determine the order of the array. A <tt>null</tt> value indicates that the elements' Comparable natural ordering should be used.
170
- * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> using the specified comparator.
171
- */
172
- export function sort(anArray: unknown, aComparator: unknown): void;
173
-
174
- /**
175
- * Sorts the specified range of the specified array of objects according to the order induced by the specified comparator.
176
- * @param <T> the class of the objects to be sorted
177
- * @param anArray the array to be sorted
178
- * @param aFromIndex the index of the first element (inclusive) to be sorted
179
- * @param aToIndex the index of the last element (exclusive) to be sorted
180
- * @param aComparator the comparator to determine the order of the array. A <tt>null</tt> value indicates that the elements' Comparable natural ordering should be used.
181
- * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> using the specified comparator.
182
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
183
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
184
- */
185
- export function sort(
186
- anArray: unknown,
187
- aFromIndex: number,
188
- aToIndex: number,
189
- aComparator: unknown
190
- ): void;
191
-
192
- /**
193
- * Searches the specified array of longs for the specified value using the binary search algorithm.
194
- * @param anArray the array to be searched
195
- * @param aKey the value to be searched for
196
- * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
197
- */
198
- export function binarySearch(anArray: number, aKey: number): number;
199
-
200
- /**
201
- * Searches a range of the specified array of longs for the specified value using the binary search algorithm.
202
- * @param anArray the array to be searched
203
- * @param aFromIndex the index of the first element (inclusive) to be searched
204
- * @param aToIndex the index of the last element (exclusive) to be searched
205
- * @param aKey the value to be searched for
206
- * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
207
- * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
208
- * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
209
- */
210
- export function binarySearch(
211
- anArray: number,
212
- aFromIndex: number,
213
- aToIndex: number,
214
- aKey: number
215
- ): number;
216
-
217
- /**
218
- * Searches the specified array of ints for the specified value using the binary search algorithm.
219
- * @param anArray the array to be searched
220
- * @param aKey the value to be searched for
221
- * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
222
- */
223
- export function binarySearch(anArray: number, aKey: number): number;
224
-
225
- /**
226
- * Searches a range of the specified array of ints for the specified value using the binary search algorithm.
227
- * @param anArray the array to be searched
228
- * @param aFromIndex the index of the first element (inclusive) to be searched
229
- * @param aToIndex the index of the last element (exclusive) to be searched
230
- * @param aKey the value to be searched for
231
- * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
232
- * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
233
- * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
234
- */
235
- export function binarySearch(
236
- anArray: number,
237
- aFromIndex: number,
238
- aToIndex: number,
239
- aKey: number
240
- ): number;
241
-
242
- /**
243
- * Searches the specified array of shorts for the specified value using the binary search algorithm.
244
- * @param anArray the array to be searched
245
- * @param aKey the value to be searched for
246
- * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
247
- */
248
- export function binarySearch(anArray: number, aKey: number): number;
249
-
250
- /**
251
- * Searches a range of the specified array of shorts for the specified value using the binary search algorithm.
252
- * @param anArray the array to be searched
253
- * @param aFromIndex the index of the first element (inclusive) to be searched
254
- * @param aToIndex the index of the last element (exclusive) to be searched
255
- * @param aKey the value to be searched for
256
- * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
257
- * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
258
- * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
259
- */
260
- export function binarySearch(
261
- anArray: number,
262
- aFromIndex: number,
263
- aToIndex: number,
264
- aKey: number
265
- ): number;
266
-
267
- /**
268
- * Searches the specified array of chars for the specified value using the binary search algorithm.
269
- * @param anArray the array to be searched
270
- * @param aKey the value to be searched for
271
- * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
272
- */
273
- export function binarySearch(anArray: string, aKey: string): number;
274
-
275
- /**
276
- * Searches a range of the specified array of chars for the specified value using the binary search algorithm.
277
- * @param anArray the array to be searched
278
- * @param aFromIndex the index of the first element (inclusive) to be searched
279
- * @param aToIndex the index of the last element (exclusive) to be searched
280
- * @param aKey the value to be searched for
281
- * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
282
- * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
283
- * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
284
- */
285
- export function binarySearch(
286
- anArray: string,
287
- aFromIndex: number,
288
- aToIndex: number,
289
- aKey: string
290
- ): number;
291
-
292
- /**
293
- * Searches the specified array of bytes for the specified value using the binary search algorithm.
294
- * @param anArray the array to be searched
295
- * @param aKey the value to be searched for
296
- * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
297
- */
298
- export function binarySearch(anArray: unknown, aKey: unknown): number;
299
-
300
- /**
301
- * Searches a range of the specified array of bytes for the specified value using the binary search algorithm.
302
- * @param anArray the array to be searched
303
- * @param aFromIndex the index of the first element (inclusive) to be searched
304
- * @param aToIndex the index of the last element (exclusive) to be searched
305
- * @param aKey the value to be searched for
306
- * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
307
- * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
308
- * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
309
- */
310
- export function binarySearch(
311
- anArray: unknown,
312
- aFromIndex: number,
313
- aToIndex: number,
314
- aKey: unknown
315
- ): number;
316
-
317
- /**
318
- * Searches the specified array of doubles for the specified value using the binary search algorithm.
319
- * @param anArray the array to be searched
320
- * @param aKey the value to be searched for
321
- * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
322
- */
323
- export function binarySearch(anArray: number, aKey: number): number;
324
-
325
- /**
326
- * Searches a range of the specified array of doubles for the specified value using the binary search algorithm.
327
- * @param anArray the array to be searched
328
- * @param aFromIndex the index of the first element (inclusive) to be searched
329
- * @param aToIndex the index of the last element (exclusive) to be searched
330
- * @param aKey the value to be searched for
331
- * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
332
- * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
333
- * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
334
- */
335
- export function binarySearch(
336
- anArray: number,
337
- aFromIndex: number,
338
- aToIndex: number,
339
- aKey: number
340
- ): number;
341
-
342
- /**
343
- * Searches the specified array of floats for the specified value using the binary search algorithm.
344
- * @param anArray the array to be searched
345
- * @param aKey the value to be searched for
346
- * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
347
- */
348
- export function binarySearch(anArray: number, aKey: number): number;
349
-
350
- /**
351
- * Searches a range of the specified array of floats for the specified value using the binary search algorithm.
352
- * @param anArray the array to be searched
353
- * @param aFromIndex the index of the first element (inclusive) to be searched
354
- * @param aToIndex the index of the last element (exclusive) to be searched
355
- * @param aKey the value to be searched for
356
- * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
357
- * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
358
- * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
359
- */
360
- export function binarySearch(
361
- anArray: number,
362
- aFromIndex: number,
363
- aToIndex: number,
364
- aKey: number
365
- ): number;
366
-
367
- /**
368
- * Searches the specified array for the specified object using the binary search algorithm.
369
- * @param anArray the array to be searched
370
- * @param aKey the value to be searched for
371
- * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
372
- * @throws ClassCastException if the search key is not comparable to the elements of the array.
373
- */
374
- export function binarySearch(anArray: unknown, aKey: unknown): number;
375
-
376
- /**
377
- * Searches a range of the specified array for the specified object using the binary search algorithm.
378
- * @param anArray the array to be searched
379
- * @param aFromIndex the index of the first element (inclusive) to be searched
380
- * @param aToIndex the index of the last element (exclusive) to be searched
381
- * @param aKey the value to be searched for
382
- * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
383
- * @throws ClassCastException if the search key is not comparable to the elements of the array within the specified range.
384
- * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
385
- * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
386
- */
387
- export function binarySearch(
388
- anArray: unknown,
389
- aFromIndex: number,
390
- aToIndex: number,
391
- aKey: unknown
392
- ): number;
393
-
394
- /**
395
- * Searches the specified array for the specified object using the binary search algorithm.
396
- * @param <T> the class of the objects to be searched
397
- * @param anArray the array to be searched
398
- * @param aKey the value to be searched for
399
- * @param aComparator the comparator by which the array is ordered. A <tt>null</tt> value indicates that the elements' Comparable natural ordering should be used.
400
- * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
401
- * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> using the specified comparator, or the search key is not comparable to the elements of the array using this comparator.
402
- */
403
- export function binarySearch(
404
- anArray: unknown,
405
- aKey: unknown,
406
- aComparator: unknown
407
- ): number;
408
-
409
- /**
410
- * Searches a range of the specified array for the specified object using the binary search algorithm.
411
- * @param <T> the class of the objects to be searched
412
- * @param anArray the array to be searched
413
- * @param aFromIndex the index of the first element (inclusive) to be searched
414
- * @param aToIndex the index of the last element (exclusive) to be searched
415
- * @param aKey the value to be searched for
416
- * @param aComparator the comparator by which the array is ordered. A <tt>null</tt> value indicates that the elements' Comparable natural ordering should be used.
417
- * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
418
- * @throws ClassCastException if the range contains elements that are not <i>mutually comparable</i> using the specified comparator, or the search key is not comparable to the elements in the range using this comparator.
419
- * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
420
- * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
421
- */
422
- export function binarySearch(
423
- anArray: unknown,
424
- aFromIndex: number,
425
- aToIndex: number,
426
- aKey: unknown,
427
- aComparator: unknown
428
- ): number;
429
-
430
- /**
431
- * Returns <tt>true</tt> if the two specified arrays of longs are <i>equal</i> to one another.
432
- * @param anArray one array to be tested for equality
433
- * @param anAnotherArray the other array to be tested for equality
434
- * @return <tt>true</tt> if the two arrays are equal
435
- */
436
- export function equals(anArray: number, anAnotherArray: number): boolean;
437
-
438
- /**
439
- * Returns <tt>true</tt> if the two specified arrays of ints are <i>equal</i> to one another.
440
- * @param anArray one array to be tested for equality
441
- * @param anAnotherArray the other array to be tested for equality
442
- * @return <tt>true</tt> if the two arrays are equal
443
- */
444
- export function equals(anArray: number, anAnotherArray: number): boolean;
445
-
446
- /**
447
- * Returns <tt>true</tt> if the two specified arrays of shorts are <i>equal</i> to one another.
448
- * @param anArray one array to be tested for equality
449
- * @param anAnotherArray the other array to be tested for equality
450
- * @return <tt>true</tt> if the two arrays are equal
451
- */
452
- export function equals(anArray: number, anAnotherArray: number): boolean;
453
-
454
- /**
455
- * Returns <tt>true</tt> if the two specified arrays of chars are <i>equal</i> to one another.
456
- * @param anArray one array to be tested for equality
457
- * @param anAnotherArray the other array to be tested for equality
458
- * @return <tt>true</tt> if the two arrays are equal
459
- */
460
- export function equals(anArray: string, anAnotherArray: string): boolean;
461
-
462
- /**
463
- * Returns <tt>true</tt> if the two specified arrays of bytes are <i>equal</i> to one another.
464
- * @param anArray one array to be tested for equality
465
- * @param anAnotherArray the other array to be tested for equality
466
- * @return <tt>true</tt> if the two arrays are equal
467
- */
468
- export function equals(anArray: unknown, anAnotherArray: unknown): boolean;
469
-
470
- /**
471
- * Returns <tt>true</tt> if the two specified arrays of booleans are <i>equal</i> to one another.
472
- * @param anArray one array to be tested for equality
473
- * @param anAnotherArray the other array to be tested for equality
474
- * @return <tt>true</tt> if the two arrays are equal
475
- */
476
- export function equals(anArray: boolean, anAnotherArray: boolean): boolean;
477
-
478
- /**
479
- * Returns <tt>true</tt> if the two specified arrays of doubles are <i>equal</i> to one another.
480
- * @param anArray one array to be tested for equality
481
- * @param anAnotherArray the other array to be tested for equality
482
- * @return <tt>true</tt> if the two arrays are equal
483
- */
484
- export function equals(anArray: number, anAnotherArray: number): boolean;
485
-
486
- /**
487
- * Returns <tt>true</tt> if the two specified arrays of floats are <i>equal</i> to one another.
488
- * @param anArray one array to be tested for equality
489
- * @param anAnotherArray the other array to be tested for equality
490
- * @return <tt>true</tt> if the two arrays are equal
491
- */
492
- export function equals(anArray: number, anAnotherArray: number): boolean;
493
-
494
- /**
495
- * Returns <tt>true</tt> if the two specified arrays of Objects are <i>equal</i> to one another.
496
- * @param anArray one array to be tested for equality
497
- * @param anAnotherArray the other array to be tested for equality
498
- * @return <tt>true</tt> if the two arrays are equal
499
- */
500
- export function equals(anArray: unknown, anAnotherArray: unknown): boolean;
501
-
502
- /**
503
- * Assigns the specified long value to each element of the specified array of longs.
504
- * @param anArray the array to be filled
505
- * @param aValue the value to be stored in all elements of the array
506
- */
507
- export function fill(anArray: number, aValue: number): void;
508
-
509
- /**
510
- * Assigns the specified long value to each element of the specified range of the specified array of longs.
511
- * @param anArray the array to be filled
512
- * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
513
- * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
514
- * @param aValue the value to be stored in all elements of the array
515
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
516
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
517
- */
518
- export function fill(
519
- anArray: number,
520
- aFromIndex: number,
521
- aToIndex: number,
522
- aValue: number
523
- ): void;
524
-
525
- /**
526
- * Assigns the specified int value to each element of the specified array of ints.
527
- * @param anArray the array to be filled
528
- * @param aValue the value to be stored in all elements of the array
529
- */
530
- export function fill(anArray: number, aValue: number): void;
531
-
532
- /**
533
- * Assigns the specified int value to each element of the specified range of the specified array of ints.
534
- * @param anArray the array to be filled
535
- * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
536
- * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
537
- * @param aValue the value to be stored in all elements of the array
538
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
539
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
540
- */
541
- export function fill(
542
- anArray: number,
543
- aFromIndex: number,
544
- aToIndex: number,
545
- aValue: number
546
- ): void;
547
-
548
- /**
549
- * Assigns the specified short value to each element of the specified array of shorts.
550
- * @param anArray the array to be filled
551
- * @param aValue the value to be stored in all elements of the array
552
- */
553
- export function fill(anArray: number, aValue: number): void;
554
-
555
- /**
556
- * Assigns the specified short value to each element of the specified range of the specified array of shorts.
557
- * @param anArray the array to be filled
558
- * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
559
- * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
560
- * @param aValue the value to be stored in all elements of the array
561
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
562
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
563
- */
564
- export function fill(
565
- anArray: number,
566
- aFromIndex: number,
567
- aToIndex: number,
568
- aValue: number
569
- ): void;
570
-
571
- /**
572
- * Assigns the specified char value to each element of the specified array of chars.
573
- * @param anArray the array to be filled
574
- * @param aValue the value to be stored in all elements of the array
575
- */
576
- export function fill(anArray: string, aValue: string): void;
577
-
578
- /**
579
- * Assigns the specified char value to each element of the specified range of the specified array of chars.
580
- * @param anArray the array to be filled
581
- * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
582
- * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
583
- * @param aValue the value to be stored in all elements of the array
584
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
585
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
586
- */
587
- export function fill(
588
- anArray: string,
589
- aFromIndex: number,
590
- aToIndex: number,
591
- aValue: string
592
- ): void;
593
-
594
- /**
595
- * Assigns the specified byte value to each element of the specified array of bytes.
596
- * @param anArray the array to be filled
597
- * @param aValue the value to be stored in all elements of the array
598
- */
599
- export function fill(anArray: unknown, aValue: unknown): void;
600
-
601
- /**
602
- * Assigns the specified byte value to each element of the specified range of the specified array of bytes.
603
- * @param anArray the array to be filled
604
- * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
605
- * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
606
- * @param aValue the value to be stored in all elements of the array
607
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
608
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
609
- */
610
- export function fill(
611
- anArray: unknown,
612
- aFromIndex: number,
613
- aToIndex: number,
614
- aValue: unknown
615
- ): void;
616
-
617
- /**
618
- * Assigns the specified boolean value to each element of the specified array of booleans.
619
- * @param anArray the array to be filled
620
- * @param aValue the value to be stored in all elements of the array
621
- */
622
- export function fill(anArray: boolean, aValue: boolean): void;
623
-
624
- /**
625
- * Assigns the specified boolean value to each element of the specified
626
- * range of the specified array of booleans.
627
- * @param anArray the array to be filled
628
- * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
629
- * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
630
- * @param aValue the value to be stored in all elements of the array
631
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
632
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
633
- */
634
- export function fill(
635
- anArray: boolean,
636
- aFromIndex: number,
637
- aToIndex: number,
638
- aValue: boolean
639
- ): void;
640
-
641
- /**
642
- * Assigns the specified double value to each element of the specified array of doubles.
643
- * @param anArray the array to be filled
644
- * @param aValue the value to be stored in all elements of the array
645
- */
646
- export function fill(anArray: number, aValue: number): void;
647
-
648
- /**
649
- * Assigns the specified double value to each element of the specified range of the specified array of doubles.
650
- * @param anArray the array to be filled
651
- * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
652
- * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
653
- * @param aValue the value to be stored in all elements of the array
654
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
655
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
656
- */
657
- export function fill(
658
- anArray: number,
659
- aFromIndex: number,
660
- aToIndex: number,
661
- aValue: number
662
- ): void;
663
-
664
- /**
665
- * Assigns the specified float value to each element of the specified array of floats.
666
- * @param anArray the array to be filled
667
- * @param aValue the value to be stored in all elements of the array
668
- */
669
- export function fill(anArray: number, aValue: number): void;
670
-
671
- /**
672
- * Assigns the specified float value to each element of the specified range of the specified array of floats.
673
- * @param anArray the array to be filled
674
- * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
675
- * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
676
- * @param aValue the value to be stored in all elements of the array
677
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
678
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
679
- */
680
- export function fill(
681
- anArray: number,
682
- aFromIndex: number,
683
- aToIndex: number,
684
- aValue: number
685
- ): void;
686
-
687
- /**
688
- * Assigns the specified Object reference to each element of the specified array of Objects.
689
- * @param anArray the array to be filled
690
- * @param aValue the value to be stored in all elements of the array
691
- * @throws ArrayStoreException if the specified value is not of a runtime type that can be stored in the specified array
692
- */
693
- export function fill(anArray: unknown, aValue: unknown): void;
694
-
695
- /**
696
- * Assigns the specified Object reference to each element of the specified range of the specified array of Objects.
697
- * @param anArray the array to be filled
698
- * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
699
- * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
700
- * @param aValue the value to be stored in all elements of the array
701
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
702
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
703
- * @throws ArrayStoreException if the specified value is not of a runtime type that can be stored in the specified array
704
- */
705
- export function fill(
706
- anArray: unknown,
707
- aFromIndex: number,
708
- aToIndex: number,
709
- aValue: unknown
710
- ): void;
711
-
712
- /**
713
- * Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length.
714
- * @param <T> the class of the objects in the array
715
- * @param anArray the array to be copied
716
- * @param aNewLength the length of the copy to be returned
717
- * @return a copy of the original array, truncated or padded with nulls to obtain the specified length
718
- * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
719
- * @throws NullPointerException if <tt>anArray</tt> is null
720
- */
721
- export function copyOf(anArray: unknown, aNewLength: number): unknown;
722
-
723
- /**
724
- * Copies the specified array, truncating or padding with nulls (if necessary)
725
- * so the copy has the specified length.
726
- * @param <U> the class of the objects in the original array
727
- * @param <T> the class of the objects in the returned array
728
- * @param anArray the array to be copied
729
- * @param aNewLength the length of the copy to be returned
730
- * @param aNewType the class of the copy to be returned
731
- * @return a copy of the original array, truncated or padded with nulls to obtain the specified length
732
- * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
733
- * @throws NullPointerException if <tt>anArray</tt> is null
734
- * @throws ArrayStoreException if an element copied from <tt>anArray</tt> is not of a runtime type that can be stored in an array of class <tt>aNewType</tt>
735
- */
736
- export function copyOf(
737
- anArray: unknown,
738
- aNewLength: number,
739
- aNewType: unknown
740
- ): unknown;
741
-
742
- /**
743
- * Copies the specified array, truncating or padding with zeros (if necessary)
744
- * so the copy has the specified length.
745
- * @param anArray the array to be copied
746
- * @param aNewLength the length of the copy to be returned
747
- * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
748
- * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
749
- * @throws NullPointerException if <tt>anArray</tt> is null
750
- */
751
- export function copyOf(anArray: unknown, aNewLength: number): unknown;
752
-
753
- /**
754
- * Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
755
- * @param anArray the array to be copied
756
- * @param aNewLength the length of the copy to be returned
757
- * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
758
- * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
759
- * @throws NullPointerException if <tt>anArray</tt> is null
760
- */
761
- export function copyOf(anArray: number, aNewLength: number): number;
762
-
763
- /**
764
- * Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
765
- * @param anArray the array to be copied
766
- * @param aNewLength the length of the copy to be returned
767
- * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
768
- * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
769
- * @throws NullPointerException if <tt>anArray</tt> is null
770
- */
771
- export function copyOf(anArray: number, aNewLength: number): number;
772
-
773
- /**
774
- * Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
775
- * @param anArray the array to be copied
776
- * @param aNewLength the length of the copy to be returned
777
- * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
778
- * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
779
- * @throws NullPointerException if <tt>anArray</tt> is null
780
- */
781
- export function copyOf(anArray: number, aNewLength: number): number;
782
-
783
- /**
784
- * Copies the specified array, truncating or padding with null characters (if necessary) so the copy has the specified length.
785
- * @param anArray the array to be copied
786
- * @param aNewLength the length of the copy to be returned
787
- * @return a copy of the original array, truncated or padded with null characters to obtain the specified length
788
- * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
789
- * @throws NullPointerException if <tt>anArray</tt> is null
790
- */
791
- export function copyOf(anArray: string, aNewLength: number): string;
792
-
793
- /**
794
- * Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
795
- * @param anArray the array to be copied
796
- * @param aNewLength the length of the copy to be returned
797
- * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
798
- * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
799
- * @throws NullPointerException if <tt>anArray</tt> is null
800
- */
801
- export function copyOf(anArray: number, aNewLength: number): number;
802
-
803
- /**
804
- * Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
805
- * @param anArray the array to be copied
806
- * @param aNewLength the length of the copy to be returned
807
- * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
808
- * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
809
- * @throws NullPointerException if <tt>anArray</tt> is null
810
- */
811
- export function copyOf(anArray: number, aNewLength: number): number;
812
-
813
- /**
814
- * Copies the specified array, truncating or padding with <tt>false</tt> (if necessary) so the copy has the specified length.
815
- * @param anArray the array to be copied
816
- * @param aNewLength the length of the copy to be returned
817
- * @return a copy of the original array, truncated or padded with false elements to obtain the specified length
818
- * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
819
- * @throws NullPointerException if <tt>anArray</tt> is null
820
- */
821
- export function copyOf(anArray: boolean, aNewLength: number): boolean;
822
-
823
- /**
824
- * Copies the specified range of the specified array into a new array.
825
- * @param <T> the class of the objects in the array
826
- * @param anArray the array from which a range is to be copied
827
- * @param aFromIndex the initial index of the range to be copied, inclusive
828
- * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
829
- * @return a new array containing the specified range from the original array, truncated or padded with nulls to obtain the required length
830
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
831
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
832
- * @throws NullPointerException if <tt>anArray</tt> is null
833
- */
834
- export function copyOfRange(
835
- anArray: unknown,
836
- aFromIndex: number,
837
- aToIndex: number
838
- ): unknown;
839
-
840
- /**
841
- * Copies the specified range of the specified array into a new array.
842
- * @param <U> the class of the objects in the original array
843
- * @param <T> the class of the objects in the returned array
844
- * @param anArray the array from which a range is to be copied
845
- * @param aFromIndex the initial index of the range to be copied, inclusive
846
- * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
847
- * @param aNewType the class of the copy to be returned
848
- * @return a new array containing the specified range from the original array, truncated or padded with nulls to obtain the required length
849
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
850
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
851
- * @throws NullPointerException if <tt>anArray</tt> is null
852
- * @throws ArrayStoreException if an element copied from <tt>anArray</tt> is not of a runtime type that can be stored in an array of class <tt>aNewType</tt>.
853
- */
854
- export function copyOfRange(
855
- anArray: unknown,
856
- aFromIndex: number,
857
- aToIndex: number,
858
- aNewType: unknown
859
- ): unknown;
860
-
861
- /**
862
- * Copies the specified range of the specified array into a new array.
863
- * @param anArray the array from which a range is to be copied
864
- * @param aFromIndex the initial index of the range to be copied, inclusive
865
- * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
866
- * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
867
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
868
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
869
- * @throws NullPointerException if <tt>anArray</tt> is null
870
- */
871
- export function copyOfRange(
872
- anArray: unknown,
873
- aFromIndex: number,
874
- aToIndex: number
875
- ): unknown;
876
-
877
- /**
878
- * Copies the specified range of the specified array into a new array.
879
- * @param anArray the array from which a range is to be copied
880
- * @param aFromIndex the initial index of the range to be copied, inclusive
881
- * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
882
- * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
883
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
884
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
885
- * @throws NullPointerException if <tt>anArray</tt> is null
886
- */
887
- export function copyOfRange(
888
- anArray: number,
889
- aFromIndex: number,
890
- aToIndex: number
891
- ): number;
892
-
893
- /**
894
- * Copies the specified range of the specified array into a new array.
895
- * @param anArray the array from which a range is to be copied
896
- * @param aFromIndex the initial index of the range to be copied, inclusive
897
- * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
898
- * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
899
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
900
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
901
- * @throws NullPointerException if <tt>anArray</tt> is null
902
- */
903
- export function copyOfRange(
904
- anArray: number,
905
- aFromIndex: number,
906
- aToIndex: number
907
- ): number;
908
-
909
- /**
910
- * Copies the specified range of the specified array into a new array.
911
- * @param anArray the array from which a range is to be copied
912
- * @param aFromIndex the initial index of the range to be copied, inclusive
913
- * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
914
- * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
915
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
916
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
917
- * @throws NullPointerException if <tt>anArray</tt> is null
918
- */
919
- export function copyOfRange(
920
- anArray: number,
921
- aFromIndex: number,
922
- aToIndex: number
923
- ): number;
924
-
925
- /**
926
- * Copies the specified range of the specified array into a new array.
927
- * @param anArray the array from which a range is to be copied
928
- * @param aFromIndex the initial index of the range to be copied, inclusive
929
- * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
930
- * @return a new array containing the specified range from the original array, truncated or padded with null characters to obtain the required length
931
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
932
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
933
- * @throws NullPointerException if <tt>anArray</tt> is null
934
- */
935
- export function copyOfRange(
936
- anArray: string,
937
- aFromIndex: number,
938
- aToIndex: number
939
- ): string;
940
-
941
- /**
942
- * Copies the specified range of the specified array into a new array.
943
- * @param anArray the array from which a range is to be copied
944
- * @param aFromIndex the initial index of the range to be copied, inclusive
945
- * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
946
- * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
947
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
948
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
949
- * @throws NullPointerException if <tt>anArray</tt> is null
950
- */
951
- export function copyOfRange(
952
- anArray: number,
953
- aFromIndex: number,
954
- aToIndex: number
955
- ): number;
956
-
957
- /**
958
- * Copies the specified range of the specified array into a new array.
959
- * @param anArray the array from which a range is to be copied
960
- * @param aFromIndex the initial index of the range to be copied, inclusive
961
- * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
962
- * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
963
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
964
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
965
- * @throws NullPointerException if <tt>anArray</tt> is null
966
- */
967
- export function copyOfRange(
968
- anArray: number,
969
- aFromIndex: number,
970
- aToIndex: number
971
- ): number;
972
-
973
- /**
974
- * Copies the specified range of the specified array into a new array.
975
- * @param anArray the array from which a range is to be copied
976
- * @param aFromIndex the initial index of the range to be copied, inclusive
977
- * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
978
- * @return a new array containing the specified range from the original array, truncated or padded with false elements to obtain the required length
979
- * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
980
- * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
981
- * @throws NullPointerException if <tt>anArray</tt> is null
982
- */
983
- export function copyOfRange(
984
- anArray: boolean,
985
- aFromIndex: number,
986
- aToIndex: number
987
- ): boolean;
988
-
989
- /**
990
- * Returns a fixed-size list backed by the specified array.
991
- * @param <T> the class of the objects in the array
992
- * @param anArray the array by which the list will be backed
993
- * @return a list view of the specified array
994
- */
995
- export function asList(anArray: unknown): unknown;
996
-
997
- /**
998
- * Returns a hash code based on the contents of the specified array.
999
- * @param anArray the array whose hash value to compute
1000
- * @return a content-based hash code for <tt>anArray</tt>
1001
- */
1002
- export function hashCode(anArray: number): number;
1003
-
1004
- /**
1005
- * Returns a hash code based on the contents of the specified array.
1006
- * @param anArray the array whose hash value to compute
1007
- * @return a content-based hash code for <tt>anArray</tt>
1008
- */
1009
- export function hashCode(anArray: number): number;
1010
-
1011
- /**
1012
- * Returns a hash code based on the contents of the specified array.
1013
- * @param anArray the array whose hash value to compute
1014
- * @return a content-based hash code for <tt>anArray</tt>
1015
- */
1016
- export function hashCode(anArray: number): number;
1017
-
1018
- /**
1019
- * Returns a hash code based on the contents of the specified array.
1020
- * @param anArray the array whose hash value to compute
1021
- * @return a content-based hash code for <tt>anArray</tt>
1022
- */
1023
- export function hashCode(anArray: string): number;
1024
-
1025
- /**
1026
- * Returns a hash code based on the contents of the specified array.
1027
- * @param anArray the array whose hash value to compute
1028
- * @return a content-based hash code for <tt>anArray</tt>
1029
- */
1030
- export function hashCode(anArray: unknown): number;
1031
-
1032
- /**
1033
- * Returns a hash code based on the contents of the specified array.
1034
- * @param anArray the array whose hash value to compute
1035
- * @return a content-based hash code for <tt>anArray</tt>
1036
- */
1037
- export function hashCode(anArray: boolean): number;
1038
-
1039
- /**
1040
- * Returns a hash code based on the contents of the specified array.
1041
- * @param anArray the array whose hash value to compute
1042
- * @return a content-based hash code for <tt>anArray</tt>
1043
- */
1044
- export function hashCode(anArray: number): number;
1045
-
1046
- /**
1047
- * Returns a hash code based on the contents of the specified array.
1048
- * @param anArray the array whose hash value to compute
1049
- * @return a content-based hash code for <tt>anArray</tt>
1050
- */
1051
- export function hashCode(anArray: number): number;
1052
-
1053
- /**
1054
- * Returns a hash code based on the contents of the specified array.
1055
- * @param anArray the array whose content-based hash code to compute
1056
- * @return a content-based hash code for <tt>anArray</tt>
1057
- */
1058
- export function hashCode(anArray: unknown): number;
1059
-
1060
- /**
1061
- * Returns a hash code based on the "deep contents" of the specified array.
1062
- * @param anArray the array whose deep-content-based hash code to compute
1063
- * @return a deep-content-based hash code for <tt>anArray</tt>
1064
- */
1065
- export function deepHashCode(anArray: unknown): number;
1066
-
1067
- /**
1068
- * Returns <tt>true</tt> if the two specified arrays are <i>deeply equal</i> to one another.
1069
- * @param anArray one array to be tested for equality
1070
- * @param anAnotherArray the other array to be tested for equality
1071
- * @return <tt>true</tt> if the two arrays are equal
1072
- */
1073
- export function deepEquals(anArray: unknown, anAnotherArray: unknown): boolean;
1074
-
1075
- /**
1076
- * Returns a string representation of the contents of the specified array.
1077
- * @param anArray the array whose string representation to return
1078
- * @return a string representation of <tt>anArray</tt>
1079
- */
1080
- export function toString(anArray: number): string;
1081
-
1082
- /**
1083
- * Returns a string representation of the contents of the specified array.
1084
- * @param anArray the array whose string representation to return
1085
- * @return a string representation of <tt>anArray</tt>
1086
- */
1087
- export function toString(anArray: number): string;
1088
-
1089
- /**
1090
- * Returns a string representation of the contents of the specified array.
1091
- * @param anArray the array whose string representation to return
1092
- * @return a string representation of <tt>anArray</tt>
1093
- */
1094
- export function toString(anArray: number): string;
1095
-
1096
- /**
1097
- * Returns a string representation of the contents of the specified array.
1098
- * @param anArray the array whose string representation to return
1099
- * @return a string representation of <tt>anArray</tt>
1100
- */
1101
- export function toString(anArray: string): string;
1102
-
1103
- /**
1104
- * Returns a string representation of the contents of the specified array.
1105
- * @param anArray the array whose string representation to return
1106
- * @return a string representation of <tt>anArray</tt>
1107
- */
1108
- export function toString(anArray: unknown): string;
1109
-
1110
- /**
1111
- * Returns a string representation of the contents of the specified array.
1112
- * @param anArray the array whose string representation to return
1113
- * @return a string representation of <tt>anArray</tt>
1114
- */
1115
- export function toString(anArray: boolean): string;
1116
-
1117
- /**
1118
- * Returns a string representation of the contents of the specified array.
1119
- * @param anArray the array whose string representation to return
1120
- * @return a string representation of <tt>anArray</tt>
1121
- */
1122
- export function toString(anArray: number): string;
1123
-
1124
- /**
1125
- * Returns a string representation of the contents of the specified array.
1126
- * @param anArray the array whose string representation to return
1127
- * @return a string representation of <tt>anArray</tt>
1128
- */
1129
- export function toString(anArray: number): string;
1130
-
1131
- /**
1132
- * Returns a string representation of the contents of the specified array.
1133
- * @param anArray the array whose string representation to return
1134
- * @return a string representation of <tt>anArray</tt>
1135
- */
1136
- export function toString(anArray: unknown): string;
1137
-
1138
- /**
1139
- * Returns a string representation of the "deep contents" of the specified array.
1140
- * @param anArray the array whose string representation to return
1141
- * @return a string representation of <tt>anArray</tt>
1142
- */
1143
- export function deepToString(anArray: unknown): string;
1144
-
1145
- /**
1146
- * Sorts the specified array into ascending numerical order.
1147
- * @param a the array to be sorted
1148
- * @since Sitevision 4.0
1149
- * @since Java 1.8
1150
- */
1151
- export function parallelSort(a: unknown): void;
1152
-
1153
- /**
1154
- * Sorts the specified range of the array into ascending numerical order.
1155
- * @param a the array to be sorted
1156
- * @param fromIndex the index of the first element, inclusive, to be sorted
1157
- * @param toIndex the index of the last element, exclusive, to be sorted
1158
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1159
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1160
- * @since Sitevision 4.0
1161
- * @since Java 1.8
1162
- */
1163
- export function parallelSort(
1164
- a: unknown,
1165
- fromIndex: number,
1166
- toIndex: number
1167
- ): void;
1168
-
1169
- /**
1170
- * Sorts the specified array into ascending numerical order.
1171
- * @param a the array to be sorted
1172
- * @since Sitevision 4.0
1173
- * @since Java 1.8
1174
- */
1175
- export function parallelSort(a: string): void;
1176
-
1177
- /**
1178
- * Sorts the specified range of the array into ascending numerical order.
1179
- * @param a the array to be sorted
1180
- * @param fromIndex the index of the first element, inclusive, to be sorted
1181
- * @param toIndex the index of the last element, exclusive, to be sorted
1182
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1183
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1184
- * @since Sitevision 4.0
1185
- * @since Java 1.8
1186
- */
1187
- export function parallelSort(
1188
- a: string,
1189
- fromIndex: number,
1190
- toIndex: number
1191
- ): void;
1192
-
1193
- /**
1194
- * Sorts the specified array into ascending numerical order.
1195
- * @param a the array to be sorted
1196
- * @since Sitevision 4.0
1197
- * @since Java 1.8
1198
- */
1199
- export function parallelSort(a: number): void;
1200
-
1201
- /**
1202
- * Sorts the specified range of the array into ascending numerical order.
1203
- * @param a the array to be sorted
1204
- * @param fromIndex the index of the first element, inclusive, to be sorted
1205
- * @param toIndex the index of the last element, exclusive, to be sorted
1206
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1207
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1208
- * @since Sitevision 4.0
1209
- * @since Java 1.8
1210
- */
1211
- export function parallelSort(
1212
- a: number,
1213
- fromIndex: number,
1214
- toIndex: number
1215
- ): void;
1216
-
1217
- /**
1218
- * Sorts the specified array into ascending numerical order.
1219
- * @param a the array to be sorted
1220
- * @since Sitevision 4.0
1221
- * @since Java 1.8
1222
- */
1223
- export function parallelSort(a: number): void;
1224
-
1225
- /**
1226
- * Sorts the specified range of the array into ascending numerical order.
1227
- * @param a the array to be sorted
1228
- * @param fromIndex the index of the first element, inclusive, to be sorted
1229
- * @param toIndex the index of the last element, exclusive, to be sorted
1230
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1231
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1232
- * @since Sitevision 4.0
1233
- * @since Java 1.8
1234
- */
1235
- export function parallelSort(
1236
- a: number,
1237
- fromIndex: number,
1238
- toIndex: number
1239
- ): void;
1240
-
1241
- /**
1242
- * Sorts the specified array into ascending numerical order.
1243
- * @param a the array to be sorted
1244
- * @since Sitevision 4.0
1245
- * @since Java 1.8
1246
- */
1247
- export function parallelSort(a: number): void;
1248
-
1249
- /**
1250
- * Sorts the specified range of the array into ascending numerical order.
1251
- * @param a the array to be sorted
1252
- * @param fromIndex the index of the first element, inclusive, to be sorted
1253
- * @param toIndex the index of the last element, exclusive, to be sorted
1254
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1255
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1256
- * @since Sitevision 4.0
1257
- * @since Java 1.8
1258
- */
1259
- export function parallelSort(
1260
- a: number,
1261
- fromIndex: number,
1262
- toIndex: number
1263
- ): void;
1264
-
1265
- /**
1266
- * Sorts the specified array into ascending numerical order.
1267
- * @param a the array to be sorted
1268
- * @since Sitevision 4.0
1269
- * @since Java 1.8
1270
- */
1271
- export function parallelSort(a: number): void;
1272
-
1273
- /**
1274
- * Sorts the specified range of the array into ascending numerical order.
1275
- * @param a the array to be sorted
1276
- * @param fromIndex the index of the first element, inclusive, to be sorted
1277
- * @param toIndex the index of the last element, exclusive, to be sorted
1278
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1279
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1280
- * @since Sitevision 4.0
1281
- * @since Java 1.8
1282
- */
1283
- export function parallelSort(
1284
- a: number,
1285
- fromIndex: number,
1286
- toIndex: number
1287
- ): void;
1288
-
1289
- /**
1290
- * Sorts the specified array into ascending numerical order.
1291
- * @param a the array to be sorted
1292
- * @since Sitevision 4.0
1293
- * @since Java 1.8
1294
- */
1295
- export function parallelSort(a: number): void;
1296
-
1297
- /**
1298
- * Sorts the specified range of the array into ascending numerical order.
1299
- * @param a the array to be sorted
1300
- * @param fromIndex the index of the first element, inclusive, to be sorted
1301
- * @param toIndex the index of the last element, exclusive, to be sorted
1302
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1303
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1304
- * @since Sitevision 4.0
1305
- * @since Java 1.8
1306
- */
1307
- export function parallelSort(
1308
- a: number,
1309
- fromIndex: number,
1310
- toIndex: number
1311
- ): void;
1312
-
1313
- /**
1314
- * Sorts the specified array of objects into ascending order, according
1315
- * to the {@linkplain Comparable natural ordering} of its elements.
1316
- * @param <T> the class of the objects to be sorted
1317
- * @param a the array to be sorted
1318
- * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> (for example, strings and integers)
1319
- * @throws IllegalArgumentException (optional) if the natural ordering of the array elements is found to violate the {@link Comparable} contract
1320
- * @since Sitevision 4.0
1321
- * @since Java 1.8
1322
- */
1323
- export function parallelSort(a: unknown): void;
1324
-
1325
- /**
1326
- * Sorts the specified range of the specified array of objects into
1327
- * ascending order, according to the
1328
- * {@linkplain Comparable natural ordering} of its elements.
1329
- * @param <T> the class of the objects to be sorted
1330
- * @param a the array to be sorted
1331
- * @param fromIndex the index of the first element (inclusive) to be sorted
1332
- * @param toIndex the index of the last element (exclusive) to be sorted
1333
- * @throws IllegalArgumentException if {@code fromIndex > toIndex} or (optional) if the natural ordering of the array elements is found to violate the {@link Comparable} contract
1334
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1335
- * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
1336
- * @since Sitevision 4.0
1337
- * @since Java 1.8
1338
- */
1339
- export function parallelSort(
1340
- a: unknown,
1341
- fromIndex: number,
1342
- toIndex: number
1343
- ): void;
1344
-
1345
- /**
1346
- * Sorts the specified array of objects according to the order induced by
1347
- * the specified comparator.
1348
- * @param <T> the class of the objects to be sorted
1349
- * @param a the array to be sorted
1350
- * @param cmp the comparator to determine the order of the array. A {@code null} value indicates that the elements' {@linkplain Comparable natural ordering} should be used.
1351
- * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> using the specified comparator
1352
- * @throws IllegalArgumentException (optional) if the comparator is found to violate the {@link java.util.Comparator} contract
1353
- * @since Sitevision 4.0
1354
- * @since Java 1.8
1355
- */
1356
- export function parallelSort(a: unknown, cmp: unknown): void;
1357
-
1358
- /**
1359
- * Sorts the specified range of the specified array of objects according
1360
- * to the order induced by the specified comparator.
1361
- * @param <T> the class of the objects to be sorted
1362
- * @param a the array to be sorted
1363
- * @param fromIndex the index of the first element (inclusive) to be sorted
1364
- * @param toIndex the index of the last element (exclusive) to be sorted
1365
- * @param cmp the comparator to determine the order of the array. A {@code null} value indicates that the elements' {@linkplain Comparable natural ordering} should be used.
1366
- * @throws IllegalArgumentException if {@code fromIndex > toIndex} or (optional) if the natural ordering of the array elements is found to violate the {@link Comparable} contract
1367
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1368
- * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
1369
- * @since Sitevision 4.0
1370
- * @since Java 1.8
1371
- */
1372
- export function parallelSort(
1373
- a: unknown,
1374
- fromIndex: number,
1375
- toIndex: number,
1376
- cmp: unknown
1377
- ): void;
1378
-
1379
- /**
1380
- * Cumulates, in parallel, each element of the given array in place, using the supplied function.
1381
- * @param <T> the class of the objects in the array
1382
- * @param array the array, which is modified in-place by this method
1383
- * @param op a side-effect-free, associative function to perform the cumulation
1384
- * @throws NullPointerException if the specified array or function is null
1385
- * @since Sitevision 4.0
1386
- * @since Java 1.8
1387
- */
1388
- export function parallelPrefix(array: unknown, op: unknown): void;
1389
-
1390
- /**
1391
- * Performs {@link #parallelPrefix(Object[], BinaryOperator)} for the given subrange of the array.
1392
- * @param <T> the class of the objects in the array
1393
- * @param array the array
1394
- * @param fromIndex the index of the first element, inclusive
1395
- * @param toIndex the index of the last element, exclusive
1396
- * @param op a side-effect-free, associative function to perform the cumulation
1397
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1398
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > array.length}
1399
- * @throws NullPointerException if the specified array or function is null
1400
- * @since Sitevision 4.0
1401
- * @since Java 1.8
1402
- */
1403
- export function parallelPrefix(
1404
- array: unknown,
1405
- fromIndex: number,
1406
- toIndex: number,
1407
- op: unknown
1408
- ): void;
1409
-
1410
- /**
1411
- * Cumulates, in parallel, each element of the given array in place, using the supplied function.
1412
- * @param array the array, which is modified in-place by this method
1413
- * @param op a side-effect-free, associative function to perform the cumulation
1414
- * @throws NullPointerException if the specified array or function is null
1415
- * @since Sitevision 4.0
1416
- * @since Java 1.8
1417
- */
1418
- export function parallelPrefix(array: number, op: unknown): void;
1419
-
1420
- /**
1421
- * Performs {@link #parallelPrefix(long[], LongBinaryOperator)} for the given subrange of the array.
1422
- * @param array the array
1423
- * @param fromIndex the index of the first element, inclusive
1424
- * @param toIndex the index of the last element, exclusive
1425
- * @param op a side-effect-free, associative function to perform the cumulation
1426
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1427
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > array.length}
1428
- * @throws NullPointerException if the specified array or function is null
1429
- * @since Sitevision 4.0
1430
- * @since Java 1.8
1431
- */
1432
- export function parallelPrefix(
1433
- array: number,
1434
- fromIndex: number,
1435
- toIndex: number,
1436
- op: unknown
1437
- ): void;
1438
-
1439
- /**
1440
- * Cumulates, in parallel, each element of the given array in place, using the supplied function.
1441
- * @param array the array, which is modified in-place by this method
1442
- * @param op a side-effect-free function to perform the cumulation
1443
- * @throws NullPointerException if the specified array or function is null
1444
- * @since Sitevision 4.0
1445
- * @since Java 1.8
1446
- */
1447
- export function parallelPrefix(array: number, op: unknown): void;
1448
-
1449
- /**
1450
- * Performs {@link #parallelPrefix(double[], DoubleBinaryOperator)} for the given subrange of the array.
1451
- * @param array the array
1452
- * @param fromIndex the index of the first element, inclusive
1453
- * @param toIndex the index of the last element, exclusive
1454
- * @param op a side-effect-free, associative function to perform the cumulation
1455
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1456
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > array.length}
1457
- * @throws NullPointerException if the specified array or function is null
1458
- * @since Sitevision 4.0
1459
- * @since Java 1.8
1460
- */
1461
- export function parallelPrefix(
1462
- array: number,
1463
- fromIndex: number,
1464
- toIndex: number,
1465
- op: unknown
1466
- ): void;
1467
-
1468
- /**
1469
- * Cumulates, in parallel, each element of the given array in place, using the supplied function.
1470
- * @param array the array, which is modified in-place by this method
1471
- * @param op a side-effect-free, associative function to perform the cumulation
1472
- * @throws NullPointerException if the specified array or function is null
1473
- * @since Sitevision 4.0
1474
- * @since Java 1.8
1475
- */
1476
- export function parallelPrefix(array: number, op: unknown): void;
1477
-
1478
- /**
1479
- * Performs {@link #parallelPrefix(int[], IntBinaryOperator)} for the given subrange of the array.
1480
- * @param array the array
1481
- * @param fromIndex the index of the first element, inclusive
1482
- * @param toIndex the index of the last element, exclusive
1483
- * @param op a side-effect-free, associative function to perform the cumulation
1484
- * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1485
- * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > array.length}
1486
- * @throws NullPointerException if the specified array or function is null
1487
- * @since Sitevision 4.0
1488
- * @since Java 1.8
1489
- */
1490
- export function parallelPrefix(
1491
- array: number,
1492
- fromIndex: number,
1493
- toIndex: number,
1494
- op: unknown
1495
- ): void;
1496
-
1497
- /**
1498
- * Set all elements of the specified array, using the provided generator function to compute each element.
1499
- * @param <T> type of elements of the array
1500
- * @param array array to be initialized
1501
- * @param generator a function accepting an index and producing the desired value for that position
1502
- * @throws NullPointerException if the generator is null
1503
- * @since Sitevision 4.0
1504
- * @since Java 1.8
1505
- */
1506
- export function setAll(array: unknown, generator: unknown): void;
1507
-
1508
- /**
1509
- * Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
1510
- * @param <T> type of elements of the array
1511
- * @param array array to be initialized
1512
- * @param generator a function accepting an index and producing the desired value for that position
1513
- * @throws NullPointerException if the generator is null
1514
- * @since Sitevision 4.0
1515
- * @since Java 1.8
1516
- */
1517
- export function parallelSetAll(array: unknown, generator: unknown): void;
1518
-
1519
- /**
1520
- * Set all elements of the specified array, using the provided generator function to compute each element.
1521
- * @param array array to be initialized
1522
- * @param generator a function accepting an index and producing the desired value for that position
1523
- * @throws NullPointerException if the generator is null
1524
- * @since Sitevision 4.0
1525
- * @since Java 1.8
1526
- */
1527
- export function setAll(array: number, generator: unknown): void;
1528
-
1529
- /**
1530
- * Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
1531
- * @param array array to be initialized
1532
- * @param generator a function accepting an index and producing the desired value for that position
1533
- * @throws NullPointerException if the generator is null
1534
- * @since Sitevision 4.0
1535
- * @since Java 1.8
1536
- */
1537
- export function parallelSetAll(array: number, generator: unknown): void;
1538
-
1539
- /**
1540
- * Set all elements of the specified array, using the provided generator function to compute each element.
1541
- * @param array array to be initialized
1542
- * @param generator a function accepting an index and producing the desired value for that position
1543
- * @throws NullPointerException if the generator is null
1544
- * @since Sitevision 4.0
1545
- * @since Java 1.8
1546
- */
1547
- export function setAll(array: number, generator: unknown): void;
1548
-
1549
- /**
1550
- * Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
1551
- * @param array array to be initialized
1552
- * @param generator a function accepting an index and producing the desired value for that position
1553
- * @throws NullPointerException if the generator is null
1554
- * @since Sitevision 4.0
1555
- * @since Java 1.8
1556
- */
1557
- export function parallelSetAll(array: number, generator: unknown): void;
1558
-
1559
- /**
1560
- * Set all elements of the specified array, using the provided generator function to compute each element.
1561
- * @param array array to be initialized
1562
- * @param generator a function accepting an index and producing the desired value for that position
1563
- * @throws NullPointerException if the generator is null
1564
- * @since Sitevision 4.0
1565
- * @since Java 1.8
1566
- */
1567
- export function setAll(array: number, generator: unknown): void;
1568
-
1569
- /**
1570
- * Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
1571
- * @param array array to be initialized
1572
- * @param generator a function accepting an index and producing the desired value for that position
1573
- * @throws NullPointerException if the generator is null
1574
- * @since Sitevision 4.0
1575
- * @since Java 1.8
1576
- */
1577
- export function parallelSetAll(array: number, generator: unknown): void;
1578
-
1579
- /**
1580
- * Returns a Spliterator covering all of the specified array.
1581
- * @param <T> type of elements
1582
- * @param array the array, assumed to be unmodified during use
1583
- * @return a spliterator for the array elements
1584
- * @since Sitevision 4.0
1585
- * @since Java 1.8
1586
- */
1587
- export function spliterator(array: unknown): unknown;
1588
-
1589
- /**
1590
- * Returns a {@link Spliterator} covering the specified range of the specified array.
1591
- * @param <T> type of elements
1592
- * @param array the array, assumed to be unmodified during use
1593
- * @param startInclusive the first index to cover, inclusive
1594
- * @param endExclusive index immediately past the last index to cover
1595
- * @return a spliterator for the array elements
1596
- * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1597
- * @since Sitevision 4.0
1598
- * @since Java 1.8
1599
- */
1600
- export function spliterator(
1601
- array: unknown,
1602
- startInclusive: number,
1603
- endExclusive: number
1604
- ): unknown;
1605
-
1606
- /**
1607
- * Returns a {@link Spliterator.OfInt} covering all of the specified array.
1608
- * @param array the array, assumed to be unmodified during use
1609
- * @return a spliterator for the array elements
1610
- * @since Sitevision 4.0
1611
- * @since Java 1.8
1612
- */
1613
- export function spliterator(array: number): unknown;
1614
-
1615
- /**
1616
- * Returns a {@link Spliterator.OfInt} covering the specified range of the specified array.
1617
- * @param array the array, assumed to be unmodified during use
1618
- * @param startInclusive the first index to cover, inclusive
1619
- * @param endExclusive index immediately past the last index to cover
1620
- * @return a spliterator for the array elements
1621
- * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1622
- * @since Sitevision 4.0
1623
- * @since Java 1.8
1624
- */
1625
- export function spliterator(
1626
- array: number,
1627
- startInclusive: number,
1628
- endExclusive: number
1629
- ): unknown;
1630
-
1631
- /**
1632
- * Returns a {@link Spliterator.OfLong} covering all of the specified array.
1633
- *
1634
- * <p>The spliterator reports {@link Spliterator#SIZED},
1635
- * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and
1636
- * {@link Spliterator#IMMUTABLE}.
1637
- * @param array the array, assumed to be unmodified during use
1638
- * @return the spliterator for the array elements
1639
- * @since Sitevision 4.0
1640
- * @since Java 1.8
1641
- */
1642
- export function spliterator(array: number): unknown;
1643
-
1644
- /**
1645
- * Returns a {@link Spliterator.OfLong} covering the specified range of the specified array.
1646
- * @param array the array, assumed to be unmodified during use
1647
- * @param startInclusive the first index to cover, inclusive
1648
- * @param endExclusive index immediately past the last index to cover
1649
- * @return a spliterator for the array elements
1650
- * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1651
- * @since Sitevision 4.0
1652
- * @since Java 1.8
1653
- */
1654
- export function spliterator(
1655
- array: number,
1656
- startInclusive: number,
1657
- endExclusive: number
1658
- ): unknown;
1659
-
1660
- /**
1661
- * Returns a {@link Spliterator.OfDouble} covering all of the specified array.
1662
- * @param array the array, assumed to be unmodified during use
1663
- * @return a spliterator for the array elements
1664
- * @since Sitevision 4.0
1665
- * @since Java 1.8
1666
- */
1667
- export function spliterator(array: number): unknown;
1668
-
1669
- /**
1670
- * Returns a {@link Spliterator.OfDouble} covering the specified range of the specified array.
1671
- * @param array the array, assumed to be unmodified during use
1672
- * @param startInclusive the first index to cover, inclusive
1673
- * @param endExclusive index immediately past the last index to cover
1674
- * @return a spliterator for the array elements
1675
- * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1676
- * @since Sitevision 4.0
1677
- * @since Java 1.8
1678
- */
1679
- export function spliterator(
1680
- array: number,
1681
- startInclusive: number,
1682
- endExclusive: number
1683
- ): unknown;
1684
-
1685
- /**
1686
- * Returns a sequential {@link Stream} with the specified array as its source.
1687
- * @param <T> The type of the array elements
1688
- * @param array The array, assumed to be unmodified during use
1689
- * @return a {@code Stream} for the array
1690
- * @since Sitevision 4.0
1691
- * @since Java 1.8
1692
- */
1693
- export function stream(array: unknown): unknown;
1694
-
1695
- /**
1696
- * Returns a sequential {@link Stream} with the specified range of the specified array as its source.
1697
- * @param <T> the type of the array elements
1698
- * @param array the array, assumed to be unmodified during use
1699
- * @param startInclusive the first index to cover, inclusive
1700
- * @param endExclusive index immediately past the last index to cover
1701
- * @return a {@code Stream} for the array range
1702
- * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1703
- * @since Sitevision 4.0
1704
- * @since Java 1.8
1705
- */
1706
- export function stream(
1707
- array: unknown,
1708
- startInclusive: number,
1709
- endExclusive: number
1710
- ): unknown;
1711
-
1712
- /**
1713
- * Returns a sequential {@link IntStream} with the specified array as its source.
1714
- * @param array the array, assumed to be unmodified during use
1715
- * @return an {@code IntStream} for the array
1716
- * @since Sitevision 4.0
1717
- * @since Java 1.8
1718
- */
1719
- export function stream(array: number): unknown;
1720
-
1721
- /**
1722
- * Returns a sequential {@link IntStream} with the specified range of the specified array as its source.
1723
- * @param array the array, assumed to be unmodified during use
1724
- * @param startInclusive the first index to cover, inclusive
1725
- * @param endExclusive index immediately past the last index to cover
1726
- * @return an {@code IntStream} for the array range
1727
- * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1728
- * @since Sitevision 4.0
1729
- * @since Java 1.8
1730
- */
1731
- export function stream(
1732
- array: number,
1733
- startInclusive: number,
1734
- endExclusive: number
1735
- ): unknown;
1736
-
1737
- /**
1738
- * Returns a sequential {@link LongStream} with the specified array as its source.
1739
- * @param array the array, assumed to be unmodified during use
1740
- * @return a {@code LongStream} for the array
1741
- * @since Sitevision 4.0
1742
- * @since Java 1.8
1743
- */
1744
- export function stream(array: number): unknown;
1745
-
1746
- /**
1747
- * Returns a sequential {@link LongStream} with the specified range of the specified array as its source.
1748
- * @param array the array, assumed to be unmodified during use
1749
- * @param startInclusive the first index to cover, inclusive
1750
- * @param endExclusive index immediately past the last index to cover
1751
- * @return a {@code LongStream} for the array range
1752
- * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1753
- * @since Sitevision 4.0
1754
- * @since Java 1.8
1755
- */
1756
- export function stream(
1757
- array: number,
1758
- startInclusive: number,
1759
- endExclusive: number
1760
- ): unknown;
1761
-
1762
- /**
1763
- * Returns a sequential {@link DoubleStream} with the specified array as its source.
1764
- * @param array the array, assumed to be unmodified during use
1765
- * @return a {@code DoubleStream} for the array
1766
- * @since Sitevision 4.0
1767
- * @since Java 1.8
1768
- */
1769
- export function stream(array: number): unknown;
1770
-
1771
- /**
1772
- * Returns a sequential {@link DoubleStream} with the specified range of the specified array as its source.
1773
- * @param array the array, assumed to be unmodified during use
1774
- * @param startInclusive the first index to cover, inclusive
1775
- * @param endExclusive index immediately past the last index to cover
1776
- * @return a {@code DoubleStream} for the array range
1777
- * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1778
- * @since Sitevision 4.0
1779
- * @since Java 1.8
1780
- */
1781
- export function stream(
1782
- array: number,
1783
- startInclusive: number,
1784
- endExclusive: number
1785
- ): unknown;
1786
-
1787
1
  /**
1788
2
  * Instance wrapper for the <code>java.util.Arrays</code> class that delegates all method calls to the corresponding <code>Arrays</code> method.
1789
3
  *
@@ -1806,27 +20,1672 @@ export function stream(
1806
20
  * @author Magnus Lövgren
1807
21
  * @since Sitevision 3.1
1808
22
  */
1809
- declare namespace arraysInstance {
1810
- export {
1811
- sort,
1812
- binarySearch,
1813
- equals,
1814
- fill,
1815
- copyOf,
1816
- copyOfRange,
1817
- asList,
1818
- hashCode,
1819
- deepHashCode,
1820
- deepEquals,
1821
- toString,
1822
- deepToString,
1823
- parallelSort,
1824
- parallelPrefix,
1825
- setAll,
1826
- parallelSetAll,
1827
- spliterator,
1828
- stream,
1829
- };
23
+ export interface ArraysInstance {
24
+ /**
25
+ * Sorts the specified array of longs into ascending numerical order.
26
+ * @param anArray the array to be sorted
27
+ */
28
+ sort(anArray: number): void;
29
+
30
+ /**
31
+ * Sorts the specified range of the specified array of longs into
32
+ * ascending numerical order.
33
+ * @param anArray the array to be sorted
34
+ * @param aFromIndex the index of the first element (inclusive) to be sorted
35
+ * @param aToIndex the index of the last element (exclusive) to be sorted
36
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
37
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
38
+ */
39
+ sort(anArray: number, aFromIndex: number, aToIndex: number): void;
40
+
41
+ /**
42
+ * Sorts the specified array of ints into ascending numerical order.
43
+ * @param anArray the array to be sorted
44
+ */
45
+ sort(anArray: number): void;
46
+
47
+ /**
48
+ * Sorts the specified range of the specified array of ints into ascending numerical order.
49
+ * @param anArray the array to be sorted
50
+ * @param aFromIndex the index of the first element (inclusive) to be sorted
51
+ * @param aToIndex the index of the last element (exclusive) to be sorted
52
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
53
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
54
+ */
55
+ sort(anArray: number, aFromIndex: number, aToIndex: number): void;
56
+
57
+ /**
58
+ * Sorts the specified array of shorts into ascending numerical order.
59
+ * @param anArray the array to be sorted
60
+ */
61
+ sort(anArray: number): void;
62
+
63
+ /**
64
+ * Sorts the specified range of the specified array of shorts into ascending numerical order.
65
+ * @param anArray the array to be sorted
66
+ * @param aFromIndex the index of the first element (inclusive) to be sorted
67
+ * @param aToIndex the index of the last element (exclusive) to be sorted
68
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
69
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
70
+ */
71
+ sort(anArray: number, aFromIndex: number, aToIndex: number): void;
72
+
73
+ /**
74
+ * Sorts the specified array of chars into ascending numerical order.
75
+ * @param anArray the array to be sorted
76
+ */
77
+ sort(anArray: string): void;
78
+
79
+ /**
80
+ * Sorts the specified range of the specified array of chars into ascending numerical order.
81
+ * @param anArray the array to be sorted
82
+ * @param aFromIndex the index of the first element (inclusive) to be sorted
83
+ * @param aToIndex the index of the last element (exclusive) to be sorted
84
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
85
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
86
+ */
87
+ sort(anArray: string, aFromIndex: number, aToIndex: number): void;
88
+
89
+ /**
90
+ * Sorts the specified array of bytes into ascending numerical order.
91
+ * @param anArray the array to be sorted
92
+ */
93
+ sort(anArray: unknown): void;
94
+
95
+ /**
96
+ * Sorts the specified range of the specified array of bytes into ascending numerical order.
97
+ * @param anArray the array to be sorted
98
+ * @param aFromIndex the index of the first element (inclusive) to be sorted
99
+ * @param aToIndex the index of the last element (exclusive) to be sorted
100
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
101
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
102
+ */
103
+ sort(anArray: unknown, aFromIndex: number, aToIndex: number): void;
104
+
105
+ /**
106
+ * Sorts the specified array of doubles into ascending numerical order.
107
+ * @param anArray the array to be sorted
108
+ */
109
+ sort(anArray: number): void;
110
+
111
+ /**
112
+ * Sorts the specified range of the specified array of doubles into ascending numerical order.
113
+ * @param anArray the array to be sorted
114
+ * @param aFromIndex the index of the first element (inclusive) to be sorted
115
+ * @param aToIndex the index of the last element (exclusive) to be sorted
116
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
117
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
118
+ */
119
+ sort(anArray: number, aFromIndex: number, aToIndex: number): void;
120
+
121
+ /**
122
+ * Sorts the specified array of floats into ascending numerical order.
123
+ * @param anArray the array to be sorted
124
+ */
125
+ sort(anArray: number): void;
126
+
127
+ /**
128
+ * Sorts the specified range of the specified array of floats into ascending numerical order.
129
+ * @param anArray the array to be sorted
130
+ * @param aFromIndex the index of the first element (inclusive) to be sorted
131
+ * @param aToIndex the index of the last element (exclusive) to be sorted
132
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
133
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
134
+ */
135
+ sort(anArray: number, aFromIndex: number, aToIndex: number): void;
136
+
137
+ /**
138
+ * Sorts the specified array of objects into ascending order, according to the <code>Comparable</code> natural ordering of its elements.
139
+ * @param anArray the array to be sorted
140
+ * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
141
+ */
142
+ sort(anArray: unknown): void;
143
+
144
+ /**
145
+ * Sorts the specified range of the specified array of objects into ascending order, according to the <code>Comparable</code>
146
+ * natural ordering of its elements.
147
+ * @param anArray the array to be sorted
148
+ * @param aFromIndex the index of the first element (inclusive) to be sorted
149
+ * @param aToIndex the index of the last element (exclusive) to be sorted
150
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
151
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
152
+ * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
153
+ */
154
+ sort(anArray: unknown, aFromIndex: number, aToIndex: number): void;
155
+
156
+ /**
157
+ * Sorts the specified array of objects according to the order induced by the specified comparator.
158
+ * @param <T> the class of the objects to be sorted
159
+ * @param anArray the array to be sorted
160
+ * @param aComparator the comparator to determine the order of the array. A <tt>null</tt> value indicates that the elements' Comparable natural ordering should be used.
161
+ * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> using the specified comparator.
162
+ */
163
+ sort(anArray: unknown, aComparator: unknown): void;
164
+
165
+ /**
166
+ * Sorts the specified range of the specified array of objects according to the order induced by the specified comparator.
167
+ * @param <T> the class of the objects to be sorted
168
+ * @param anArray the array to be sorted
169
+ * @param aFromIndex the index of the first element (inclusive) to be sorted
170
+ * @param aToIndex the index of the last element (exclusive) to be sorted
171
+ * @param aComparator the comparator to determine the order of the array. A <tt>null</tt> value indicates that the elements' Comparable natural ordering should be used.
172
+ * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> using the specified comparator.
173
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
174
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
175
+ */
176
+ sort(
177
+ anArray: unknown,
178
+ aFromIndex: number,
179
+ aToIndex: number,
180
+ aComparator: unknown
181
+ ): void;
182
+
183
+ /**
184
+ * Searches the specified array of longs for the specified value using the binary search algorithm.
185
+ * @param anArray the array to be searched
186
+ * @param aKey the value to be searched for
187
+ * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
188
+ */
189
+ binarySearch(anArray: number, aKey: number): number;
190
+
191
+ /**
192
+ * Searches a range of the specified array of longs for the specified value using the binary search algorithm.
193
+ * @param anArray the array to be searched
194
+ * @param aFromIndex the index of the first element (inclusive) to be searched
195
+ * @param aToIndex the index of the last element (exclusive) to be searched
196
+ * @param aKey the value to be searched for
197
+ * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
198
+ * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
199
+ * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
200
+ */
201
+ binarySearch(
202
+ anArray: number,
203
+ aFromIndex: number,
204
+ aToIndex: number,
205
+ aKey: number
206
+ ): number;
207
+
208
+ /**
209
+ * Searches the specified array of ints for the specified value using the binary search algorithm.
210
+ * @param anArray the array to be searched
211
+ * @param aKey the value to be searched for
212
+ * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
213
+ */
214
+ binarySearch(anArray: number, aKey: number): number;
215
+
216
+ /**
217
+ * Searches a range of the specified array of ints for the specified value using the binary search algorithm.
218
+ * @param anArray the array to be searched
219
+ * @param aFromIndex the index of the first element (inclusive) to be searched
220
+ * @param aToIndex the index of the last element (exclusive) to be searched
221
+ * @param aKey the value to be searched for
222
+ * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
223
+ * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
224
+ * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
225
+ */
226
+ binarySearch(
227
+ anArray: number,
228
+ aFromIndex: number,
229
+ aToIndex: number,
230
+ aKey: number
231
+ ): number;
232
+
233
+ /**
234
+ * Searches the specified array of shorts for the specified value using the binary search algorithm.
235
+ * @param anArray the array to be searched
236
+ * @param aKey the value to be searched for
237
+ * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
238
+ */
239
+ binarySearch(anArray: number, aKey: number): number;
240
+
241
+ /**
242
+ * Searches a range of the specified array of shorts for the specified value using the binary search algorithm.
243
+ * @param anArray the array to be searched
244
+ * @param aFromIndex the index of the first element (inclusive) to be searched
245
+ * @param aToIndex the index of the last element (exclusive) to be searched
246
+ * @param aKey the value to be searched for
247
+ * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
248
+ * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
249
+ * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
250
+ */
251
+ binarySearch(
252
+ anArray: number,
253
+ aFromIndex: number,
254
+ aToIndex: number,
255
+ aKey: number
256
+ ): number;
257
+
258
+ /**
259
+ * Searches the specified array of chars for the specified value using the binary search algorithm.
260
+ * @param anArray the array to be searched
261
+ * @param aKey the value to be searched for
262
+ * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
263
+ */
264
+ binarySearch(anArray: string, aKey: string): number;
265
+
266
+ /**
267
+ * Searches a range of the specified array of chars for the specified value using the binary search algorithm.
268
+ * @param anArray the array to be searched
269
+ * @param aFromIndex the index of the first element (inclusive) to be searched
270
+ * @param aToIndex the index of the last element (exclusive) to be searched
271
+ * @param aKey the value to be searched for
272
+ * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
273
+ * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
274
+ * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
275
+ */
276
+ binarySearch(
277
+ anArray: string,
278
+ aFromIndex: number,
279
+ aToIndex: number,
280
+ aKey: string
281
+ ): number;
282
+
283
+ /**
284
+ * Searches the specified array of bytes for the specified value using the binary search algorithm.
285
+ * @param anArray the array to be searched
286
+ * @param aKey the value to be searched for
287
+ * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
288
+ */
289
+ binarySearch(anArray: unknown, aKey: unknown): number;
290
+
291
+ /**
292
+ * Searches a range of the specified array of bytes for the specified value using the binary search algorithm.
293
+ * @param anArray the array to be searched
294
+ * @param aFromIndex the index of the first element (inclusive) to be searched
295
+ * @param aToIndex the index of the last element (exclusive) to be searched
296
+ * @param aKey the value to be searched for
297
+ * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
298
+ * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
299
+ * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
300
+ */
301
+ binarySearch(
302
+ anArray: unknown,
303
+ aFromIndex: number,
304
+ aToIndex: number,
305
+ aKey: unknown
306
+ ): number;
307
+
308
+ /**
309
+ * Searches the specified array of doubles for the specified value using the binary search algorithm.
310
+ * @param anArray the array to be searched
311
+ * @param aKey the value to be searched for
312
+ * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
313
+ */
314
+ binarySearch(anArray: number, aKey: number): number;
315
+
316
+ /**
317
+ * Searches a range of the specified array of doubles for the specified value using the binary search algorithm.
318
+ * @param anArray the array to be searched
319
+ * @param aFromIndex the index of the first element (inclusive) to be searched
320
+ * @param aToIndex the index of the last element (exclusive) to be searched
321
+ * @param aKey the value to be searched for
322
+ * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
323
+ * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
324
+ * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
325
+ */
326
+ binarySearch(
327
+ anArray: number,
328
+ aFromIndex: number,
329
+ aToIndex: number,
330
+ aKey: number
331
+ ): number;
332
+
333
+ /**
334
+ * Searches the specified array of floats for the specified value using the binary search algorithm.
335
+ * @param anArray the array to be searched
336
+ * @param aKey the value to be searched for
337
+ * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
338
+ */
339
+ binarySearch(anArray: number, aKey: number): number;
340
+
341
+ /**
342
+ * Searches a range of the specified array of floats for the specified value using the binary search algorithm.
343
+ * @param anArray the array to be searched
344
+ * @param aFromIndex the index of the first element (inclusive) to be searched
345
+ * @param aToIndex the index of the last element (exclusive) to be searched
346
+ * @param aKey the value to be searched for
347
+ * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
348
+ * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
349
+ * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
350
+ */
351
+ binarySearch(
352
+ anArray: number,
353
+ aFromIndex: number,
354
+ aToIndex: number,
355
+ aKey: number
356
+ ): number;
357
+
358
+ /**
359
+ * Searches the specified array for the specified object using the binary search algorithm.
360
+ * @param anArray the array to be searched
361
+ * @param aKey the value to be searched for
362
+ * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
363
+ * @throws ClassCastException if the search key is not comparable to the elements of the array.
364
+ */
365
+ binarySearch(anArray: unknown, aKey: unknown): number;
366
+
367
+ /**
368
+ * Searches a range of the specified array for the specified object using the binary search algorithm.
369
+ * @param anArray the array to be searched
370
+ * @param aFromIndex the index of the first element (inclusive) to be searched
371
+ * @param aToIndex the index of the last element (exclusive) to be searched
372
+ * @param aKey the value to be searched for
373
+ * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
374
+ * @throws ClassCastException if the search key is not comparable to the elements of the array within the specified range.
375
+ * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
376
+ * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
377
+ */
378
+ binarySearch(
379
+ anArray: unknown,
380
+ aFromIndex: number,
381
+ aToIndex: number,
382
+ aKey: unknown
383
+ ): number;
384
+
385
+ /**
386
+ * Searches the specified array for the specified object using the binary search algorithm.
387
+ * @param <T> the class of the objects to be searched
388
+ * @param anArray the array to be searched
389
+ * @param aKey the value to be searched for
390
+ * @param aComparator the comparator by which the array is ordered. A <tt>null</tt> value indicates that the elements' Comparable natural ordering should be used.
391
+ * @return index of the search key, if it is contained in the array; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element greater than the key, or <tt>anArray.length</tt> if all elements in the array are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
392
+ * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> using the specified comparator, or the search key is not comparable to the elements of the array using this comparator.
393
+ */
394
+ binarySearch(anArray: unknown, aKey: unknown, aComparator: unknown): number;
395
+
396
+ /**
397
+ * Searches a range of the specified array for the specified object using the binary search algorithm.
398
+ * @param <T> the class of the objects to be searched
399
+ * @param anArray the array to be searched
400
+ * @param aFromIndex the index of the first element (inclusive) to be searched
401
+ * @param aToIndex the index of the last element (exclusive) to be searched
402
+ * @param aKey the value to be searched for
403
+ * @param aComparator the comparator by which the array is ordered. A <tt>null</tt> value indicates that the elements' Comparable natural ordering should be used.
404
+ * @return index of the search key, if it is contained in the array within the specified range; otherwise, <tt>(-(<i>insertion point</i>) - 1)</tt>. The <i>insertion point</i> is defined as the point at which the key would be inserted into the array: the index of the first element in the range greater than the key, or <tt>aToIndex</tt> if all elements in the range are less than the specified key. Note that this guarantees that the return value will be &gt;= 0 if and only if the key is found.
405
+ * @throws ClassCastException if the range contains elements that are not <i>mutually comparable</i> using the specified comparator, or the search key is not comparable to the elements in the range using this comparator.
406
+ * @throws IllegalArgumentException if {@code aFromIndex > aToIndex}
407
+ * @throws ArrayIndexOutOfBoundsException if {@code aFromIndex < 0 or aToIndex > anArray.length}
408
+ */
409
+ binarySearch(
410
+ anArray: unknown,
411
+ aFromIndex: number,
412
+ aToIndex: number,
413
+ aKey: unknown,
414
+ aComparator: unknown
415
+ ): number;
416
+
417
+ /**
418
+ * Returns <tt>true</tt> if the two specified arrays of longs are <i>equal</i> to one another.
419
+ * @param anArray one array to be tested for equality
420
+ * @param anAnotherArray the other array to be tested for equality
421
+ * @return <tt>true</tt> if the two arrays are equal
422
+ */
423
+ equals(anArray: number, anAnotherArray: number): boolean;
424
+
425
+ /**
426
+ * Returns <tt>true</tt> if the two specified arrays of ints are <i>equal</i> to one another.
427
+ * @param anArray one array to be tested for equality
428
+ * @param anAnotherArray the other array to be tested for equality
429
+ * @return <tt>true</tt> if the two arrays are equal
430
+ */
431
+ equals(anArray: number, anAnotherArray: number): boolean;
432
+
433
+ /**
434
+ * Returns <tt>true</tt> if the two specified arrays of shorts are <i>equal</i> to one another.
435
+ * @param anArray one array to be tested for equality
436
+ * @param anAnotherArray the other array to be tested for equality
437
+ * @return <tt>true</tt> if the two arrays are equal
438
+ */
439
+ equals(anArray: number, anAnotherArray: number): boolean;
440
+
441
+ /**
442
+ * Returns <tt>true</tt> if the two specified arrays of chars are <i>equal</i> to one another.
443
+ * @param anArray one array to be tested for equality
444
+ * @param anAnotherArray the other array to be tested for equality
445
+ * @return <tt>true</tt> if the two arrays are equal
446
+ */
447
+ equals(anArray: string, anAnotherArray: string): boolean;
448
+
449
+ /**
450
+ * Returns <tt>true</tt> if the two specified arrays of bytes are <i>equal</i> to one another.
451
+ * @param anArray one array to be tested for equality
452
+ * @param anAnotherArray the other array to be tested for equality
453
+ * @return <tt>true</tt> if the two arrays are equal
454
+ */
455
+ equals(anArray: unknown, anAnotherArray: unknown): boolean;
456
+
457
+ /**
458
+ * Returns <tt>true</tt> if the two specified arrays of booleans are <i>equal</i> to one another.
459
+ * @param anArray one array to be tested for equality
460
+ * @param anAnotherArray the other array to be tested for equality
461
+ * @return <tt>true</tt> if the two arrays are equal
462
+ */
463
+ equals(anArray: boolean, anAnotherArray: boolean): boolean;
464
+
465
+ /**
466
+ * Returns <tt>true</tt> if the two specified arrays of doubles are <i>equal</i> to one another.
467
+ * @param anArray one array to be tested for equality
468
+ * @param anAnotherArray the other array to be tested for equality
469
+ * @return <tt>true</tt> if the two arrays are equal
470
+ */
471
+ equals(anArray: number, anAnotherArray: number): boolean;
472
+
473
+ /**
474
+ * Returns <tt>true</tt> if the two specified arrays of floats are <i>equal</i> to one another.
475
+ * @param anArray one array to be tested for equality
476
+ * @param anAnotherArray the other array to be tested for equality
477
+ * @return <tt>true</tt> if the two arrays are equal
478
+ */
479
+ equals(anArray: number, anAnotherArray: number): boolean;
480
+
481
+ /**
482
+ * Returns <tt>true</tt> if the two specified arrays of Objects are <i>equal</i> to one another.
483
+ * @param anArray one array to be tested for equality
484
+ * @param anAnotherArray the other array to be tested for equality
485
+ * @return <tt>true</tt> if the two arrays are equal
486
+ */
487
+ equals(anArray: unknown, anAnotherArray: unknown): boolean;
488
+
489
+ /**
490
+ * Assigns the specified long value to each element of the specified array of longs.
491
+ * @param anArray the array to be filled
492
+ * @param aValue the value to be stored in all elements of the array
493
+ */
494
+ fill(anArray: number, aValue: number): void;
495
+
496
+ /**
497
+ * Assigns the specified long value to each element of the specified range of the specified array of longs.
498
+ * @param anArray the array to be filled
499
+ * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
500
+ * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
501
+ * @param aValue the value to be stored in all elements of the array
502
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
503
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
504
+ */
505
+ fill(
506
+ anArray: number,
507
+ aFromIndex: number,
508
+ aToIndex: number,
509
+ aValue: number
510
+ ): void;
511
+
512
+ /**
513
+ * Assigns the specified int value to each element of the specified array of ints.
514
+ * @param anArray the array to be filled
515
+ * @param aValue the value to be stored in all elements of the array
516
+ */
517
+ fill(anArray: number, aValue: number): void;
518
+
519
+ /**
520
+ * Assigns the specified int value to each element of the specified range of the specified array of ints.
521
+ * @param anArray the array to be filled
522
+ * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
523
+ * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
524
+ * @param aValue the value to be stored in all elements of the array
525
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
526
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
527
+ */
528
+ fill(
529
+ anArray: number,
530
+ aFromIndex: number,
531
+ aToIndex: number,
532
+ aValue: number
533
+ ): void;
534
+
535
+ /**
536
+ * Assigns the specified short value to each element of the specified array of shorts.
537
+ * @param anArray the array to be filled
538
+ * @param aValue the value to be stored in all elements of the array
539
+ */
540
+ fill(anArray: number, aValue: number): void;
541
+
542
+ /**
543
+ * Assigns the specified short value to each element of the specified range of the specified array of shorts.
544
+ * @param anArray the array to be filled
545
+ * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
546
+ * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
547
+ * @param aValue the value to be stored in all elements of the array
548
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
549
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
550
+ */
551
+ fill(
552
+ anArray: number,
553
+ aFromIndex: number,
554
+ aToIndex: number,
555
+ aValue: number
556
+ ): void;
557
+
558
+ /**
559
+ * Assigns the specified char value to each element of the specified array of chars.
560
+ * @param anArray the array to be filled
561
+ * @param aValue the value to be stored in all elements of the array
562
+ */
563
+ fill(anArray: string, aValue: string): void;
564
+
565
+ /**
566
+ * Assigns the specified char value to each element of the specified range of the specified array of chars.
567
+ * @param anArray the array to be filled
568
+ * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
569
+ * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
570
+ * @param aValue the value to be stored in all elements of the array
571
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
572
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
573
+ */
574
+ fill(
575
+ anArray: string,
576
+ aFromIndex: number,
577
+ aToIndex: number,
578
+ aValue: string
579
+ ): void;
580
+
581
+ /**
582
+ * Assigns the specified byte value to each element of the specified array of bytes.
583
+ * @param anArray the array to be filled
584
+ * @param aValue the value to be stored in all elements of the array
585
+ */
586
+ fill(anArray: unknown, aValue: unknown): void;
587
+
588
+ /**
589
+ * Assigns the specified byte value to each element of the specified range of the specified array of bytes.
590
+ * @param anArray the array to be filled
591
+ * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
592
+ * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
593
+ * @param aValue the value to be stored in all elements of the array
594
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
595
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
596
+ */
597
+ fill(
598
+ anArray: unknown,
599
+ aFromIndex: number,
600
+ aToIndex: number,
601
+ aValue: unknown
602
+ ): void;
603
+
604
+ /**
605
+ * Assigns the specified boolean value to each element of the specified array of booleans.
606
+ * @param anArray the array to be filled
607
+ * @param aValue the value to be stored in all elements of the array
608
+ */
609
+ fill(anArray: boolean, aValue: boolean): void;
610
+
611
+ /**
612
+ * Assigns the specified boolean value to each element of the specified
613
+ * range of the specified array of booleans.
614
+ * @param anArray the array to be filled
615
+ * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
616
+ * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
617
+ * @param aValue the value to be stored in all elements of the array
618
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
619
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
620
+ */
621
+ fill(
622
+ anArray: boolean,
623
+ aFromIndex: number,
624
+ aToIndex: number,
625
+ aValue: boolean
626
+ ): void;
627
+
628
+ /**
629
+ * Assigns the specified double value to each element of the specified array of doubles.
630
+ * @param anArray the array to be filled
631
+ * @param aValue the value to be stored in all elements of the array
632
+ */
633
+ fill(anArray: number, aValue: number): void;
634
+
635
+ /**
636
+ * Assigns the specified double value to each element of the specified range of the specified array of doubles.
637
+ * @param anArray the array to be filled
638
+ * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
639
+ * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
640
+ * @param aValue the value to be stored in all elements of the array
641
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
642
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
643
+ */
644
+ fill(
645
+ anArray: number,
646
+ aFromIndex: number,
647
+ aToIndex: number,
648
+ aValue: number
649
+ ): void;
650
+
651
+ /**
652
+ * Assigns the specified float value to each element of the specified array of floats.
653
+ * @param anArray the array to be filled
654
+ * @param aValue the value to be stored in all elements of the array
655
+ */
656
+ fill(anArray: number, aValue: number): void;
657
+
658
+ /**
659
+ * Assigns the specified float value to each element of the specified range of the specified array of floats.
660
+ * @param anArray the array to be filled
661
+ * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
662
+ * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
663
+ * @param aValue the value to be stored in all elements of the array
664
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
665
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
666
+ */
667
+ fill(
668
+ anArray: number,
669
+ aFromIndex: number,
670
+ aToIndex: number,
671
+ aValue: number
672
+ ): void;
673
+
674
+ /**
675
+ * Assigns the specified Object reference to each element of the specified array of Objects.
676
+ * @param anArray the array to be filled
677
+ * @param aValue the value to be stored in all elements of the array
678
+ * @throws ArrayStoreException if the specified value is not of a runtime type that can be stored in the specified array
679
+ */
680
+ fill(anArray: unknown, aValue: unknown): void;
681
+
682
+ /**
683
+ * Assigns the specified Object reference to each element of the specified range of the specified array of Objects.
684
+ * @param anArray the array to be filled
685
+ * @param aFromIndex the index of the first element (inclusive) to be filled with the specified value
686
+ * @param aToIndex the index of the last element (exclusive) to be filled with the specified value
687
+ * @param aValue the value to be stored in all elements of the array
688
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
689
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aToIndex &gt; anArray.length</tt>
690
+ * @throws ArrayStoreException if the specified value is not of a runtime type that can be stored in the specified array
691
+ */
692
+ fill(
693
+ anArray: unknown,
694
+ aFromIndex: number,
695
+ aToIndex: number,
696
+ aValue: unknown
697
+ ): void;
698
+
699
+ /**
700
+ * Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length.
701
+ * @param <T> the class of the objects in the array
702
+ * @param anArray the array to be copied
703
+ * @param aNewLength the length of the copy to be returned
704
+ * @return a copy of the original array, truncated or padded with nulls to obtain the specified length
705
+ * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
706
+ * @throws NullPointerException if <tt>anArray</tt> is null
707
+ */
708
+ copyOf(anArray: unknown, aNewLength: number): unknown;
709
+
710
+ /**
711
+ * Copies the specified array, truncating or padding with nulls (if necessary)
712
+ * so the copy has the specified length.
713
+ * @param <U> the class of the objects in the original array
714
+ * @param <T> the class of the objects in the returned array
715
+ * @param anArray the array to be copied
716
+ * @param aNewLength the length of the copy to be returned
717
+ * @param aNewType the class of the copy to be returned
718
+ * @return a copy of the original array, truncated or padded with nulls to obtain the specified length
719
+ * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
720
+ * @throws NullPointerException if <tt>anArray</tt> is null
721
+ * @throws ArrayStoreException if an element copied from <tt>anArray</tt> is not of a runtime type that can be stored in an array of class <tt>aNewType</tt>
722
+ */
723
+ copyOf(anArray: unknown, aNewLength: number, aNewType: unknown): unknown;
724
+
725
+ /**
726
+ * Copies the specified array, truncating or padding with zeros (if necessary)
727
+ * so the copy has the specified length.
728
+ * @param anArray the array to be copied
729
+ * @param aNewLength the length of the copy to be returned
730
+ * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
731
+ * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
732
+ * @throws NullPointerException if <tt>anArray</tt> is null
733
+ */
734
+ copyOf(anArray: unknown, aNewLength: number): unknown;
735
+
736
+ /**
737
+ * Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
738
+ * @param anArray the array to be copied
739
+ * @param aNewLength the length of the copy to be returned
740
+ * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
741
+ * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
742
+ * @throws NullPointerException if <tt>anArray</tt> is null
743
+ */
744
+ copyOf(anArray: number, aNewLength: number): number;
745
+
746
+ /**
747
+ * Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
748
+ * @param anArray the array to be copied
749
+ * @param aNewLength the length of the copy to be returned
750
+ * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
751
+ * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
752
+ * @throws NullPointerException if <tt>anArray</tt> is null
753
+ */
754
+ copyOf(anArray: number, aNewLength: number): number;
755
+
756
+ /**
757
+ * Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
758
+ * @param anArray the array to be copied
759
+ * @param aNewLength the length of the copy to be returned
760
+ * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
761
+ * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
762
+ * @throws NullPointerException if <tt>anArray</tt> is null
763
+ */
764
+ copyOf(anArray: number, aNewLength: number): number;
765
+
766
+ /**
767
+ * Copies the specified array, truncating or padding with null characters (if necessary) so the copy has the specified length.
768
+ * @param anArray the array to be copied
769
+ * @param aNewLength the length of the copy to be returned
770
+ * @return a copy of the original array, truncated or padded with null characters to obtain the specified length
771
+ * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
772
+ * @throws NullPointerException if <tt>anArray</tt> is null
773
+ */
774
+ copyOf(anArray: string, aNewLength: number): string;
775
+
776
+ /**
777
+ * Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
778
+ * @param anArray the array to be copied
779
+ * @param aNewLength the length of the copy to be returned
780
+ * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
781
+ * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
782
+ * @throws NullPointerException if <tt>anArray</tt> is null
783
+ */
784
+ copyOf(anArray: number, aNewLength: number): number;
785
+
786
+ /**
787
+ * Copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length.
788
+ * @param anArray the array to be copied
789
+ * @param aNewLength the length of the copy to be returned
790
+ * @return a copy of the original array, truncated or padded with zeros to obtain the specified length
791
+ * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
792
+ * @throws NullPointerException if <tt>anArray</tt> is null
793
+ */
794
+ copyOf(anArray: number, aNewLength: number): number;
795
+
796
+ /**
797
+ * Copies the specified array, truncating or padding with <tt>false</tt> (if necessary) so the copy has the specified length.
798
+ * @param anArray the array to be copied
799
+ * @param aNewLength the length of the copy to be returned
800
+ * @return a copy of the original array, truncated or padded with false elements to obtain the specified length
801
+ * @throws NegativeArraySizeException if <tt>aNewLength</tt> is negative
802
+ * @throws NullPointerException if <tt>anArray</tt> is null
803
+ */
804
+ copyOf(anArray: boolean, aNewLength: number): boolean;
805
+
806
+ /**
807
+ * Copies the specified range of the specified array into a new array.
808
+ * @param <T> the class of the objects in the array
809
+ * @param anArray the array from which a range is to be copied
810
+ * @param aFromIndex the initial index of the range to be copied, inclusive
811
+ * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
812
+ * @return a new array containing the specified range from the original array, truncated or padded with nulls to obtain the required length
813
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
814
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
815
+ * @throws NullPointerException if <tt>anArray</tt> is null
816
+ */
817
+ copyOfRange(anArray: unknown, aFromIndex: number, aToIndex: number): unknown;
818
+
819
+ /**
820
+ * Copies the specified range of the specified array into a new array.
821
+ * @param <U> the class of the objects in the original array
822
+ * @param <T> the class of the objects in the returned array
823
+ * @param anArray the array from which a range is to be copied
824
+ * @param aFromIndex the initial index of the range to be copied, inclusive
825
+ * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
826
+ * @param aNewType the class of the copy to be returned
827
+ * @return a new array containing the specified range from the original array, truncated or padded with nulls to obtain the required length
828
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
829
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
830
+ * @throws NullPointerException if <tt>anArray</tt> is null
831
+ * @throws ArrayStoreException if an element copied from <tt>anArray</tt> is not of a runtime type that can be stored in an array of class <tt>aNewType</tt>.
832
+ */
833
+ copyOfRange(
834
+ anArray: unknown,
835
+ aFromIndex: number,
836
+ aToIndex: number,
837
+ aNewType: unknown
838
+ ): unknown;
839
+
840
+ /**
841
+ * Copies the specified range of the specified array into a new array.
842
+ * @param anArray the array from which a range is to be copied
843
+ * @param aFromIndex the initial index of the range to be copied, inclusive
844
+ * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
845
+ * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
846
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
847
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
848
+ * @throws NullPointerException if <tt>anArray</tt> is null
849
+ */
850
+ copyOfRange(anArray: unknown, aFromIndex: number, aToIndex: number): unknown;
851
+
852
+ /**
853
+ * Copies the specified range of the specified array into a new array.
854
+ * @param anArray the array from which a range is to be copied
855
+ * @param aFromIndex the initial index of the range to be copied, inclusive
856
+ * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
857
+ * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
858
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
859
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
860
+ * @throws NullPointerException if <tt>anArray</tt> is null
861
+ */
862
+ copyOfRange(anArray: number, aFromIndex: number, aToIndex: number): number;
863
+
864
+ /**
865
+ * Copies the specified range of the specified array into a new array.
866
+ * @param anArray the array from which a range is to be copied
867
+ * @param aFromIndex the initial index of the range to be copied, inclusive
868
+ * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
869
+ * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
870
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
871
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
872
+ * @throws NullPointerException if <tt>anArray</tt> is null
873
+ */
874
+ copyOfRange(anArray: number, aFromIndex: number, aToIndex: number): number;
875
+
876
+ /**
877
+ * Copies the specified range of the specified array into a new array.
878
+ * @param anArray the array from which a range is to be copied
879
+ * @param aFromIndex the initial index of the range to be copied, inclusive
880
+ * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
881
+ * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
882
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
883
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
884
+ * @throws NullPointerException if <tt>anArray</tt> is null
885
+ */
886
+ copyOfRange(anArray: number, aFromIndex: number, aToIndex: number): number;
887
+
888
+ /**
889
+ * Copies the specified range of the specified array into a new array.
890
+ * @param anArray the array from which a range is to be copied
891
+ * @param aFromIndex the initial index of the range to be copied, inclusive
892
+ * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
893
+ * @return a new array containing the specified range from the original array, truncated or padded with null characters to obtain the required length
894
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
895
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
896
+ * @throws NullPointerException if <tt>anArray</tt> is null
897
+ */
898
+ copyOfRange(anArray: string, aFromIndex: number, aToIndex: number): string;
899
+
900
+ /**
901
+ * Copies the specified range of the specified array into a new array.
902
+ * @param anArray the array from which a range is to be copied
903
+ * @param aFromIndex the initial index of the range to be copied, inclusive
904
+ * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
905
+ * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
906
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
907
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
908
+ * @throws NullPointerException if <tt>anArray</tt> is null
909
+ */
910
+ copyOfRange(anArray: number, aFromIndex: number, aToIndex: number): number;
911
+
912
+ /**
913
+ * Copies the specified range of the specified array into a new array.
914
+ * @param anArray the array from which a range is to be copied
915
+ * @param aFromIndex the initial index of the range to be copied, inclusive
916
+ * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
917
+ * @return a new array containing the specified range from the original array, truncated or padded with zeros to obtain the required length
918
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
919
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
920
+ * @throws NullPointerException if <tt>anArray</tt> is null
921
+ */
922
+ copyOfRange(anArray: number, aFromIndex: number, aToIndex: number): number;
923
+
924
+ /**
925
+ * Copies the specified range of the specified array into a new array.
926
+ * @param anArray the array from which a range is to be copied
927
+ * @param aFromIndex the initial index of the range to be copied, inclusive
928
+ * @param aToIndex the final index of the range to be copied, exclusive. (This index may lie outside the array.)
929
+ * @return a new array containing the specified range from the original array, truncated or padded with false elements to obtain the required length
930
+ * @throws ArrayIndexOutOfBoundsException if <tt>aFromIndex &lt; 0</tt> or <tt>aFromIndex &gt; anArray.length()</tt>
931
+ * @throws IllegalArgumentException if <tt>aFromIndex &gt; aToIndex</tt>
932
+ * @throws NullPointerException if <tt>anArray</tt> is null
933
+ */
934
+ copyOfRange(anArray: boolean, aFromIndex: number, aToIndex: number): boolean;
935
+
936
+ /**
937
+ * Returns a fixed-size list backed by the specified array.
938
+ * @param <T> the class of the objects in the array
939
+ * @param anArray the array by which the list will be backed
940
+ * @return a list view of the specified array
941
+ */
942
+ asList(anArray: unknown): unknown;
943
+
944
+ /**
945
+ * Returns a hash code based on the contents of the specified array.
946
+ * @param anArray the array whose hash value to compute
947
+ * @return a content-based hash code for <tt>anArray</tt>
948
+ */
949
+ hashCode(anArray: number): number;
950
+
951
+ /**
952
+ * Returns a hash code based on the contents of the specified array.
953
+ * @param anArray the array whose hash value to compute
954
+ * @return a content-based hash code for <tt>anArray</tt>
955
+ */
956
+ hashCode(anArray: number): number;
957
+
958
+ /**
959
+ * Returns a hash code based on the contents of the specified array.
960
+ * @param anArray the array whose hash value to compute
961
+ * @return a content-based hash code for <tt>anArray</tt>
962
+ */
963
+ hashCode(anArray: number): number;
964
+
965
+ /**
966
+ * Returns a hash code based on the contents of the specified array.
967
+ * @param anArray the array whose hash value to compute
968
+ * @return a content-based hash code for <tt>anArray</tt>
969
+ */
970
+ hashCode(anArray: string): number;
971
+
972
+ /**
973
+ * Returns a hash code based on the contents of the specified array.
974
+ * @param anArray the array whose hash value to compute
975
+ * @return a content-based hash code for <tt>anArray</tt>
976
+ */
977
+ hashCode(anArray: unknown): number;
978
+
979
+ /**
980
+ * Returns a hash code based on the contents of the specified array.
981
+ * @param anArray the array whose hash value to compute
982
+ * @return a content-based hash code for <tt>anArray</tt>
983
+ */
984
+ hashCode(anArray: boolean): number;
985
+
986
+ /**
987
+ * Returns a hash code based on the contents of the specified array.
988
+ * @param anArray the array whose hash value to compute
989
+ * @return a content-based hash code for <tt>anArray</tt>
990
+ */
991
+ hashCode(anArray: number): number;
992
+
993
+ /**
994
+ * Returns a hash code based on the contents of the specified array.
995
+ * @param anArray the array whose hash value to compute
996
+ * @return a content-based hash code for <tt>anArray</tt>
997
+ */
998
+ hashCode(anArray: number): number;
999
+
1000
+ /**
1001
+ * Returns a hash code based on the contents of the specified array.
1002
+ * @param anArray the array whose content-based hash code to compute
1003
+ * @return a content-based hash code for <tt>anArray</tt>
1004
+ */
1005
+ hashCode(anArray: unknown): number;
1006
+
1007
+ /**
1008
+ * Returns a hash code based on the "deep contents" of the specified array.
1009
+ * @param anArray the array whose deep-content-based hash code to compute
1010
+ * @return a deep-content-based hash code for <tt>anArray</tt>
1011
+ */
1012
+ deepHashCode(anArray: unknown): number;
1013
+
1014
+ /**
1015
+ * Returns <tt>true</tt> if the two specified arrays are <i>deeply equal</i> to one another.
1016
+ * @param anArray one array to be tested for equality
1017
+ * @param anAnotherArray the other array to be tested for equality
1018
+ * @return <tt>true</tt> if the two arrays are equal
1019
+ */
1020
+ deepEquals(anArray: unknown, anAnotherArray: unknown): boolean;
1021
+
1022
+ /**
1023
+ * Returns a string representation of the contents of the specified array.
1024
+ * @param anArray the array whose string representation to return
1025
+ * @return a string representation of <tt>anArray</tt>
1026
+ */
1027
+ toString(anArray: number): string;
1028
+
1029
+ /**
1030
+ * Returns a string representation of the contents of the specified array.
1031
+ * @param anArray the array whose string representation to return
1032
+ * @return a string representation of <tt>anArray</tt>
1033
+ */
1034
+ toString(anArray: number): string;
1035
+
1036
+ /**
1037
+ * Returns a string representation of the contents of the specified array.
1038
+ * @param anArray the array whose string representation to return
1039
+ * @return a string representation of <tt>anArray</tt>
1040
+ */
1041
+ toString(anArray: number): string;
1042
+
1043
+ /**
1044
+ * Returns a string representation of the contents of the specified array.
1045
+ * @param anArray the array whose string representation to return
1046
+ * @return a string representation of <tt>anArray</tt>
1047
+ */
1048
+ toString(anArray: string): string;
1049
+
1050
+ /**
1051
+ * Returns a string representation of the contents of the specified array.
1052
+ * @param anArray the array whose string representation to return
1053
+ * @return a string representation of <tt>anArray</tt>
1054
+ */
1055
+ toString(anArray: unknown): string;
1056
+
1057
+ /**
1058
+ * Returns a string representation of the contents of the specified array.
1059
+ * @param anArray the array whose string representation to return
1060
+ * @return a string representation of <tt>anArray</tt>
1061
+ */
1062
+ toString(anArray: boolean): string;
1063
+
1064
+ /**
1065
+ * Returns a string representation of the contents of the specified array.
1066
+ * @param anArray the array whose string representation to return
1067
+ * @return a string representation of <tt>anArray</tt>
1068
+ */
1069
+ toString(anArray: number): string;
1070
+
1071
+ /**
1072
+ * Returns a string representation of the contents of the specified array.
1073
+ * @param anArray the array whose string representation to return
1074
+ * @return a string representation of <tt>anArray</tt>
1075
+ */
1076
+ toString(anArray: number): string;
1077
+
1078
+ /**
1079
+ * Returns a string representation of the contents of the specified array.
1080
+ * @param anArray the array whose string representation to return
1081
+ * @return a string representation of <tt>anArray</tt>
1082
+ */
1083
+ toString(anArray: unknown): string;
1084
+
1085
+ /**
1086
+ * Returns a string representation of the "deep contents" of the specified array.
1087
+ * @param anArray the array whose string representation to return
1088
+ * @return a string representation of <tt>anArray</tt>
1089
+ */
1090
+ deepToString(anArray: unknown): string;
1091
+
1092
+ /**
1093
+ * Sorts the specified array into ascending numerical order.
1094
+ * @param a the array to be sorted
1095
+ * @since Sitevision 4.0
1096
+ * @since Java 1.8
1097
+ */
1098
+ parallelSort(a: unknown): void;
1099
+
1100
+ /**
1101
+ * Sorts the specified range of the array into ascending numerical order.
1102
+ * @param a the array to be sorted
1103
+ * @param fromIndex the index of the first element, inclusive, to be sorted
1104
+ * @param toIndex the index of the last element, exclusive, to be sorted
1105
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1106
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1107
+ * @since Sitevision 4.0
1108
+ * @since Java 1.8
1109
+ */
1110
+ parallelSort(a: unknown, fromIndex: number, toIndex: number): void;
1111
+
1112
+ /**
1113
+ * Sorts the specified array into ascending numerical order.
1114
+ * @param a the array to be sorted
1115
+ * @since Sitevision 4.0
1116
+ * @since Java 1.8
1117
+ */
1118
+ parallelSort(a: string): void;
1119
+
1120
+ /**
1121
+ * Sorts the specified range of the array into ascending numerical order.
1122
+ * @param a the array to be sorted
1123
+ * @param fromIndex the index of the first element, inclusive, to be sorted
1124
+ * @param toIndex the index of the last element, exclusive, to be sorted
1125
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1126
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1127
+ * @since Sitevision 4.0
1128
+ * @since Java 1.8
1129
+ */
1130
+ parallelSort(a: string, fromIndex: number, toIndex: number): void;
1131
+
1132
+ /**
1133
+ * Sorts the specified array into ascending numerical order.
1134
+ * @param a the array to be sorted
1135
+ * @since Sitevision 4.0
1136
+ * @since Java 1.8
1137
+ */
1138
+ parallelSort(a: number): void;
1139
+
1140
+ /**
1141
+ * Sorts the specified range of the array into ascending numerical order.
1142
+ * @param a the array to be sorted
1143
+ * @param fromIndex the index of the first element, inclusive, to be sorted
1144
+ * @param toIndex the index of the last element, exclusive, to be sorted
1145
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1146
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1147
+ * @since Sitevision 4.0
1148
+ * @since Java 1.8
1149
+ */
1150
+ parallelSort(a: number, fromIndex: number, toIndex: number): void;
1151
+
1152
+ /**
1153
+ * Sorts the specified array into ascending numerical order.
1154
+ * @param a the array to be sorted
1155
+ * @since Sitevision 4.0
1156
+ * @since Java 1.8
1157
+ */
1158
+ parallelSort(a: number): void;
1159
+
1160
+ /**
1161
+ * Sorts the specified range of the array into ascending numerical order.
1162
+ * @param a the array to be sorted
1163
+ * @param fromIndex the index of the first element, inclusive, to be sorted
1164
+ * @param toIndex the index of the last element, exclusive, to be sorted
1165
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1166
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1167
+ * @since Sitevision 4.0
1168
+ * @since Java 1.8
1169
+ */
1170
+ parallelSort(a: number, fromIndex: number, toIndex: number): void;
1171
+
1172
+ /**
1173
+ * Sorts the specified array into ascending numerical order.
1174
+ * @param a the array to be sorted
1175
+ * @since Sitevision 4.0
1176
+ * @since Java 1.8
1177
+ */
1178
+ parallelSort(a: number): void;
1179
+
1180
+ /**
1181
+ * Sorts the specified range of the array into ascending numerical order.
1182
+ * @param a the array to be sorted
1183
+ * @param fromIndex the index of the first element, inclusive, to be sorted
1184
+ * @param toIndex the index of the last element, exclusive, to be sorted
1185
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1186
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1187
+ * @since Sitevision 4.0
1188
+ * @since Java 1.8
1189
+ */
1190
+ parallelSort(a: number, fromIndex: number, toIndex: number): void;
1191
+
1192
+ /**
1193
+ * Sorts the specified array into ascending numerical order.
1194
+ * @param a the array to be sorted
1195
+ * @since Sitevision 4.0
1196
+ * @since Java 1.8
1197
+ */
1198
+ parallelSort(a: number): void;
1199
+
1200
+ /**
1201
+ * Sorts the specified range of the array into ascending numerical order.
1202
+ * @param a the array to be sorted
1203
+ * @param fromIndex the index of the first element, inclusive, to be sorted
1204
+ * @param toIndex the index of the last element, exclusive, to be sorted
1205
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1206
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1207
+ * @since Sitevision 4.0
1208
+ * @since Java 1.8
1209
+ */
1210
+ parallelSort(a: number, fromIndex: number, toIndex: number): void;
1211
+
1212
+ /**
1213
+ * Sorts the specified array into ascending numerical order.
1214
+ * @param a the array to be sorted
1215
+ * @since Sitevision 4.0
1216
+ * @since Java 1.8
1217
+ */
1218
+ parallelSort(a: number): void;
1219
+
1220
+ /**
1221
+ * Sorts the specified range of the array into ascending numerical order.
1222
+ * @param a the array to be sorted
1223
+ * @param fromIndex the index of the first element, inclusive, to be sorted
1224
+ * @param toIndex the index of the last element, exclusive, to be sorted
1225
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1226
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1227
+ * @since Sitevision 4.0
1228
+ * @since Java 1.8
1229
+ */
1230
+ parallelSort(a: number, fromIndex: number, toIndex: number): void;
1231
+
1232
+ /**
1233
+ * Sorts the specified array of objects into ascending order, according
1234
+ * to the {@linkplain Comparable natural ordering} of its elements.
1235
+ * @param <T> the class of the objects to be sorted
1236
+ * @param a the array to be sorted
1237
+ * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> (for example, strings and integers)
1238
+ * @throws IllegalArgumentException (optional) if the natural ordering of the array elements is found to violate the {@link Comparable} contract
1239
+ * @since Sitevision 4.0
1240
+ * @since Java 1.8
1241
+ */
1242
+ parallelSort(a: unknown): void;
1243
+
1244
+ /**
1245
+ * Sorts the specified range of the specified array of objects into
1246
+ * ascending order, according to the
1247
+ * {@linkplain Comparable natural ordering} of its elements.
1248
+ * @param <T> the class of the objects to be sorted
1249
+ * @param a the array to be sorted
1250
+ * @param fromIndex the index of the first element (inclusive) to be sorted
1251
+ * @param toIndex the index of the last element (exclusive) to be sorted
1252
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex} or (optional) if the natural ordering of the array elements is found to violate the {@link Comparable} contract
1253
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1254
+ * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
1255
+ * @since Sitevision 4.0
1256
+ * @since Java 1.8
1257
+ */
1258
+ parallelSort(a: unknown, fromIndex: number, toIndex: number): void;
1259
+
1260
+ /**
1261
+ * Sorts the specified array of objects according to the order induced by
1262
+ * the specified comparator.
1263
+ * @param <T> the class of the objects to be sorted
1264
+ * @param a the array to be sorted
1265
+ * @param cmp the comparator to determine the order of the array. A {@code null} value indicates that the elements' {@linkplain Comparable natural ordering} should be used.
1266
+ * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> using the specified comparator
1267
+ * @throws IllegalArgumentException (optional) if the comparator is found to violate the {@link java.util.Comparator} contract
1268
+ * @since Sitevision 4.0
1269
+ * @since Java 1.8
1270
+ */
1271
+ parallelSort(a: unknown, cmp: unknown): void;
1272
+
1273
+ /**
1274
+ * Sorts the specified range of the specified array of objects according
1275
+ * to the order induced by the specified comparator.
1276
+ * @param <T> the class of the objects to be sorted
1277
+ * @param a the array to be sorted
1278
+ * @param fromIndex the index of the first element (inclusive) to be sorted
1279
+ * @param toIndex the index of the last element (exclusive) to be sorted
1280
+ * @param cmp the comparator to determine the order of the array. A {@code null} value indicates that the elements' {@linkplain Comparable natural ordering} should be used.
1281
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex} or (optional) if the natural ordering of the array elements is found to violate the {@link Comparable} contract
1282
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > a.length}
1283
+ * @throws ClassCastException if the array contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
1284
+ * @since Sitevision 4.0
1285
+ * @since Java 1.8
1286
+ */
1287
+ parallelSort(
1288
+ a: unknown,
1289
+ fromIndex: number,
1290
+ toIndex: number,
1291
+ cmp: unknown
1292
+ ): void;
1293
+
1294
+ /**
1295
+ * Cumulates, in parallel, each element of the given array in place, using the supplied function.
1296
+ * @param <T> the class of the objects in the array
1297
+ * @param array the array, which is modified in-place by this method
1298
+ * @param op a side-effect-free, associative function to perform the cumulation
1299
+ * @throws NullPointerException if the specified array or function is null
1300
+ * @since Sitevision 4.0
1301
+ * @since Java 1.8
1302
+ */
1303
+ parallelPrefix(array: unknown, op: unknown): void;
1304
+
1305
+ /**
1306
+ * Performs {@link #parallelPrefix(Object[], BinaryOperator)} for the given subrange of the array.
1307
+ * @param <T> the class of the objects in the array
1308
+ * @param array the array
1309
+ * @param fromIndex the index of the first element, inclusive
1310
+ * @param toIndex the index of the last element, exclusive
1311
+ * @param op a side-effect-free, associative function to perform the cumulation
1312
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1313
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > array.length}
1314
+ * @throws NullPointerException if the specified array or function is null
1315
+ * @since Sitevision 4.0
1316
+ * @since Java 1.8
1317
+ */
1318
+ parallelPrefix(
1319
+ array: unknown,
1320
+ fromIndex: number,
1321
+ toIndex: number,
1322
+ op: unknown
1323
+ ): void;
1324
+
1325
+ /**
1326
+ * Cumulates, in parallel, each element of the given array in place, using the supplied function.
1327
+ * @param array the array, which is modified in-place by this method
1328
+ * @param op a side-effect-free, associative function to perform the cumulation
1329
+ * @throws NullPointerException if the specified array or function is null
1330
+ * @since Sitevision 4.0
1331
+ * @since Java 1.8
1332
+ */
1333
+ parallelPrefix(array: number, op: unknown): void;
1334
+
1335
+ /**
1336
+ * Performs {@link #parallelPrefix(long[], LongBinaryOperator)} for the given subrange of the array.
1337
+ * @param array the array
1338
+ * @param fromIndex the index of the first element, inclusive
1339
+ * @param toIndex the index of the last element, exclusive
1340
+ * @param op a side-effect-free, associative function to perform the cumulation
1341
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1342
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > array.length}
1343
+ * @throws NullPointerException if the specified array or function is null
1344
+ * @since Sitevision 4.0
1345
+ * @since Java 1.8
1346
+ */
1347
+ parallelPrefix(
1348
+ array: number,
1349
+ fromIndex: number,
1350
+ toIndex: number,
1351
+ op: unknown
1352
+ ): void;
1353
+
1354
+ /**
1355
+ * Cumulates, in parallel, each element of the given array in place, using the supplied function.
1356
+ * @param array the array, which is modified in-place by this method
1357
+ * @param op a side-effect-free function to perform the cumulation
1358
+ * @throws NullPointerException if the specified array or function is null
1359
+ * @since Sitevision 4.0
1360
+ * @since Java 1.8
1361
+ */
1362
+ parallelPrefix(array: number, op: unknown): void;
1363
+
1364
+ /**
1365
+ * Performs {@link #parallelPrefix(double[], DoubleBinaryOperator)} for the given subrange of the array.
1366
+ * @param array the array
1367
+ * @param fromIndex the index of the first element, inclusive
1368
+ * @param toIndex the index of the last element, exclusive
1369
+ * @param op a side-effect-free, associative function to perform the cumulation
1370
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1371
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > array.length}
1372
+ * @throws NullPointerException if the specified array or function is null
1373
+ * @since Sitevision 4.0
1374
+ * @since Java 1.8
1375
+ */
1376
+ parallelPrefix(
1377
+ array: number,
1378
+ fromIndex: number,
1379
+ toIndex: number,
1380
+ op: unknown
1381
+ ): void;
1382
+
1383
+ /**
1384
+ * Cumulates, in parallel, each element of the given array in place, using the supplied function.
1385
+ * @param array the array, which is modified in-place by this method
1386
+ * @param op a side-effect-free, associative function to perform the cumulation
1387
+ * @throws NullPointerException if the specified array or function is null
1388
+ * @since Sitevision 4.0
1389
+ * @since Java 1.8
1390
+ */
1391
+ parallelPrefix(array: number, op: unknown): void;
1392
+
1393
+ /**
1394
+ * Performs {@link #parallelPrefix(int[], IntBinaryOperator)} for the given subrange of the array.
1395
+ * @param array the array
1396
+ * @param fromIndex the index of the first element, inclusive
1397
+ * @param toIndex the index of the last element, exclusive
1398
+ * @param op a side-effect-free, associative function to perform the cumulation
1399
+ * @throws IllegalArgumentException if {@code fromIndex > toIndex}
1400
+ * @throws ArrayIndexOutOfBoundsException if {@code fromIndex < 0} or {@code toIndex > array.length}
1401
+ * @throws NullPointerException if the specified array or function is null
1402
+ * @since Sitevision 4.0
1403
+ * @since Java 1.8
1404
+ */
1405
+ parallelPrefix(
1406
+ array: number,
1407
+ fromIndex: number,
1408
+ toIndex: number,
1409
+ op: unknown
1410
+ ): void;
1411
+
1412
+ /**
1413
+ * Set all elements of the specified array, using the provided generator function to compute each element.
1414
+ * @param <T> type of elements of the array
1415
+ * @param array array to be initialized
1416
+ * @param generator a function accepting an index and producing the desired value for that position
1417
+ * @throws NullPointerException if the generator is null
1418
+ * @since Sitevision 4.0
1419
+ * @since Java 1.8
1420
+ */
1421
+ setAll(array: unknown, generator: unknown): void;
1422
+
1423
+ /**
1424
+ * Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
1425
+ * @param <T> type of elements of the array
1426
+ * @param array array to be initialized
1427
+ * @param generator a function accepting an index and producing the desired value for that position
1428
+ * @throws NullPointerException if the generator is null
1429
+ * @since Sitevision 4.0
1430
+ * @since Java 1.8
1431
+ */
1432
+ parallelSetAll(array: unknown, generator: unknown): void;
1433
+
1434
+ /**
1435
+ * Set all elements of the specified array, using the provided generator function to compute each element.
1436
+ * @param array array to be initialized
1437
+ * @param generator a function accepting an index and producing the desired value for that position
1438
+ * @throws NullPointerException if the generator is null
1439
+ * @since Sitevision 4.0
1440
+ * @since Java 1.8
1441
+ */
1442
+ setAll(array: number, generator: unknown): void;
1443
+
1444
+ /**
1445
+ * Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
1446
+ * @param array array to be initialized
1447
+ * @param generator a function accepting an index and producing the desired value for that position
1448
+ * @throws NullPointerException if the generator is null
1449
+ * @since Sitevision 4.0
1450
+ * @since Java 1.8
1451
+ */
1452
+ parallelSetAll(array: number, generator: unknown): void;
1453
+
1454
+ /**
1455
+ * Set all elements of the specified array, using the provided generator function to compute each element.
1456
+ * @param array array to be initialized
1457
+ * @param generator a function accepting an index and producing the desired value for that position
1458
+ * @throws NullPointerException if the generator is null
1459
+ * @since Sitevision 4.0
1460
+ * @since Java 1.8
1461
+ */
1462
+ setAll(array: number, generator: unknown): void;
1463
+
1464
+ /**
1465
+ * Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
1466
+ * @param array array to be initialized
1467
+ * @param generator a function accepting an index and producing the desired value for that position
1468
+ * @throws NullPointerException if the generator is null
1469
+ * @since Sitevision 4.0
1470
+ * @since Java 1.8
1471
+ */
1472
+ parallelSetAll(array: number, generator: unknown): void;
1473
+
1474
+ /**
1475
+ * Set all elements of the specified array, using the provided generator function to compute each element.
1476
+ * @param array array to be initialized
1477
+ * @param generator a function accepting an index and producing the desired value for that position
1478
+ * @throws NullPointerException if the generator is null
1479
+ * @since Sitevision 4.0
1480
+ * @since Java 1.8
1481
+ */
1482
+ setAll(array: number, generator: unknown): void;
1483
+
1484
+ /**
1485
+ * Set all elements of the specified array, in parallel, using the provided generator function to compute each element.
1486
+ * @param array array to be initialized
1487
+ * @param generator a function accepting an index and producing the desired value for that position
1488
+ * @throws NullPointerException if the generator is null
1489
+ * @since Sitevision 4.0
1490
+ * @since Java 1.8
1491
+ */
1492
+ parallelSetAll(array: number, generator: unknown): void;
1493
+
1494
+ /**
1495
+ * Returns a Spliterator covering all of the specified array.
1496
+ * @param <T> type of elements
1497
+ * @param array the array, assumed to be unmodified during use
1498
+ * @return a spliterator for the array elements
1499
+ * @since Sitevision 4.0
1500
+ * @since Java 1.8
1501
+ */
1502
+ spliterator(array: unknown): unknown;
1503
+
1504
+ /**
1505
+ * Returns a {@link Spliterator} covering the specified range of the specified array.
1506
+ * @param <T> type of elements
1507
+ * @param array the array, assumed to be unmodified during use
1508
+ * @param startInclusive the first index to cover, inclusive
1509
+ * @param endExclusive index immediately past the last index to cover
1510
+ * @return a spliterator for the array elements
1511
+ * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1512
+ * @since Sitevision 4.0
1513
+ * @since Java 1.8
1514
+ */
1515
+ spliterator(
1516
+ array: unknown,
1517
+ startInclusive: number,
1518
+ endExclusive: number
1519
+ ): unknown;
1520
+
1521
+ /**
1522
+ * Returns a {@link Spliterator.OfInt} covering all of the specified array.
1523
+ * @param array the array, assumed to be unmodified during use
1524
+ * @return a spliterator for the array elements
1525
+ * @since Sitevision 4.0
1526
+ * @since Java 1.8
1527
+ */
1528
+ spliterator(array: number): unknown;
1529
+
1530
+ /**
1531
+ * Returns a {@link Spliterator.OfInt} covering the specified range of the specified array.
1532
+ * @param array the array, assumed to be unmodified during use
1533
+ * @param startInclusive the first index to cover, inclusive
1534
+ * @param endExclusive index immediately past the last index to cover
1535
+ * @return a spliterator for the array elements
1536
+ * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1537
+ * @since Sitevision 4.0
1538
+ * @since Java 1.8
1539
+ */
1540
+ spliterator(
1541
+ array: number,
1542
+ startInclusive: number,
1543
+ endExclusive: number
1544
+ ): unknown;
1545
+
1546
+ /**
1547
+ * Returns a {@link Spliterator.OfLong} covering all of the specified array.
1548
+ *
1549
+ * <p>The spliterator reports {@link Spliterator#SIZED},
1550
+ * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and
1551
+ * {@link Spliterator#IMMUTABLE}.
1552
+ * @param array the array, assumed to be unmodified during use
1553
+ * @return the spliterator for the array elements
1554
+ * @since Sitevision 4.0
1555
+ * @since Java 1.8
1556
+ */
1557
+ spliterator(array: number): unknown;
1558
+
1559
+ /**
1560
+ * Returns a {@link Spliterator.OfLong} covering the specified range of the specified array.
1561
+ * @param array the array, assumed to be unmodified during use
1562
+ * @param startInclusive the first index to cover, inclusive
1563
+ * @param endExclusive index immediately past the last index to cover
1564
+ * @return a spliterator for the array elements
1565
+ * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1566
+ * @since Sitevision 4.0
1567
+ * @since Java 1.8
1568
+ */
1569
+ spliterator(
1570
+ array: number,
1571
+ startInclusive: number,
1572
+ endExclusive: number
1573
+ ): unknown;
1574
+
1575
+ /**
1576
+ * Returns a {@link Spliterator.OfDouble} covering all of the specified array.
1577
+ * @param array the array, assumed to be unmodified during use
1578
+ * @return a spliterator for the array elements
1579
+ * @since Sitevision 4.0
1580
+ * @since Java 1.8
1581
+ */
1582
+ spliterator(array: number): unknown;
1583
+
1584
+ /**
1585
+ * Returns a {@link Spliterator.OfDouble} covering the specified range of the specified array.
1586
+ * @param array the array, assumed to be unmodified during use
1587
+ * @param startInclusive the first index to cover, inclusive
1588
+ * @param endExclusive index immediately past the last index to cover
1589
+ * @return a spliterator for the array elements
1590
+ * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1591
+ * @since Sitevision 4.0
1592
+ * @since Java 1.8
1593
+ */
1594
+ spliterator(
1595
+ array: number,
1596
+ startInclusive: number,
1597
+ endExclusive: number
1598
+ ): unknown;
1599
+
1600
+ /**
1601
+ * Returns a sequential {@link Stream} with the specified array as its source.
1602
+ * @param <T> The type of the array elements
1603
+ * @param array The array, assumed to be unmodified during use
1604
+ * @return a {@code Stream} for the array
1605
+ * @since Sitevision 4.0
1606
+ * @since Java 1.8
1607
+ */
1608
+ stream(array: unknown): unknown;
1609
+
1610
+ /**
1611
+ * Returns a sequential {@link Stream} with the specified range of the specified array as its source.
1612
+ * @param <T> the type of the array elements
1613
+ * @param array the array, assumed to be unmodified during use
1614
+ * @param startInclusive the first index to cover, inclusive
1615
+ * @param endExclusive index immediately past the last index to cover
1616
+ * @return a {@code Stream} for the array range
1617
+ * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1618
+ * @since Sitevision 4.0
1619
+ * @since Java 1.8
1620
+ */
1621
+ stream(array: unknown, startInclusive: number, endExclusive: number): unknown;
1622
+
1623
+ /**
1624
+ * Returns a sequential {@link IntStream} with the specified array as its source.
1625
+ * @param array the array, assumed to be unmodified during use
1626
+ * @return an {@code IntStream} for the array
1627
+ * @since Sitevision 4.0
1628
+ * @since Java 1.8
1629
+ */
1630
+ stream(array: number): unknown;
1631
+
1632
+ /**
1633
+ * Returns a sequential {@link IntStream} with the specified range of the specified array as its source.
1634
+ * @param array the array, assumed to be unmodified during use
1635
+ * @param startInclusive the first index to cover, inclusive
1636
+ * @param endExclusive index immediately past the last index to cover
1637
+ * @return an {@code IntStream} for the array range
1638
+ * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1639
+ * @since Sitevision 4.0
1640
+ * @since Java 1.8
1641
+ */
1642
+ stream(array: number, startInclusive: number, endExclusive: number): unknown;
1643
+
1644
+ /**
1645
+ * Returns a sequential {@link LongStream} with the specified array as its source.
1646
+ * @param array the array, assumed to be unmodified during use
1647
+ * @return a {@code LongStream} for the array
1648
+ * @since Sitevision 4.0
1649
+ * @since Java 1.8
1650
+ */
1651
+ stream(array: number): unknown;
1652
+
1653
+ /**
1654
+ * Returns a sequential {@link LongStream} with the specified range of the specified array as its source.
1655
+ * @param array the array, assumed to be unmodified during use
1656
+ * @param startInclusive the first index to cover, inclusive
1657
+ * @param endExclusive index immediately past the last index to cover
1658
+ * @return a {@code LongStream} for the array range
1659
+ * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1660
+ * @since Sitevision 4.0
1661
+ * @since Java 1.8
1662
+ */
1663
+ stream(array: number, startInclusive: number, endExclusive: number): unknown;
1664
+
1665
+ /**
1666
+ * Returns a sequential {@link DoubleStream} with the specified array as its source.
1667
+ * @param array the array, assumed to be unmodified during use
1668
+ * @return a {@code DoubleStream} for the array
1669
+ * @since Sitevision 4.0
1670
+ * @since Java 1.8
1671
+ */
1672
+ stream(array: number): unknown;
1673
+
1674
+ /**
1675
+ * Returns a sequential {@link DoubleStream} with the specified range of the specified array as its source.
1676
+ * @param array the array, assumed to be unmodified during use
1677
+ * @param startInclusive the first index to cover, inclusive
1678
+ * @param endExclusive index immediately past the last index to cover
1679
+ * @return a {@code DoubleStream} for the array range
1680
+ * @throws ArrayIndexOutOfBoundsException if {@code startInclusive} is negative, {@code endExclusive} is less than {@code startInclusive}, or {@code endExclusive} is greater than the array size
1681
+ * @since Sitevision 4.0
1682
+ * @since Java 1.8
1683
+ */
1684
+ stream(array: number, startInclusive: number, endExclusive: number): unknown;
1830
1685
  }
1831
1686
 
1687
+ declare namespace ArraysInstance {}
1688
+
1689
+ declare var arraysInstance: ArraysInstance;
1690
+
1832
1691
  export default arraysInstance;