@sitevision/api 2.0.0-alpha.1 → 2.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/index.d.ts +8 -0
  2. package/package.json +1 -1
  3. package/server/AliasUtil/index.d.ts +13 -11
  4. package/server/ArchiveUtil/index.d.ts +45 -43
  5. package/server/ArraysInstance/index.d.ts +1667 -1808
  6. package/server/ArticleUtil/index.d.ts +294 -226
  7. package/server/AuthenticationUtil/index.d.ts +73 -85
  8. package/server/BookmarkUtil/index.d.ts +76 -81
  9. package/server/BuddyIconRenderer/index.d.ts +124 -132
  10. package/server/BuddyIconRenderer.BuddyIconSize/index.d.ts +41 -0
  11. package/server/BuddyIconRenderer.BuddyIconSize/index.js +25 -0
  12. package/server/ClientUtil/index.d.ts +11 -9
  13. package/server/CollaborationFactory/index.d.ts +37 -40
  14. package/server/CollaborationGroupFolderUtil/index.d.ts +30 -28
  15. package/server/CollaborationGroupState/index.d.ts +27 -0
  16. package/server/CollaborationGroupState/index.js +11 -0
  17. package/server/CollaborationGroupTemplateUtil/index.d.ts +48 -50
  18. package/server/CollaborationGroupType/index.d.ts +28 -0
  19. package/server/CollaborationGroupType/index.js +12 -0
  20. package/server/CollaborationGroupUtil/index.d.ts +86 -82
  21. package/server/CollectionsInstance/index.d.ts +642 -705
  22. package/server/ColorUtil/index.d.ts +36 -37
  23. package/server/CompoundAndFilterBuilder/index.d.ts +31 -29
  24. package/server/CompoundComparatorBuilder/index.d.ts +35 -33
  25. package/server/CompoundOrFilterBuilder/index.d.ts +31 -29
  26. package/server/ContentNodeUtil/index.d.ts +36 -34
  27. package/server/CurrencyFactory/index.d.ts +72 -70
  28. package/server/DateUtil/index.d.ts +132 -142
  29. package/server/DecorationUtil/index.d.ts +13 -11
  30. package/server/DeviceUtil/index.d.ts +21 -19
  31. package/server/DimensionMode/index.d.ts +17 -0
  32. package/server/DimensionMode/index.js +12 -0
  33. package/server/DirectoryUtil/index.d.ts +90 -88
  34. package/server/DocType/index.d.ts +30 -0
  35. package/server/DocType/index.js +14 -0
  36. package/server/DocTypeUtil/index.d.ts +129 -135
  37. package/server/EndecUtil/index.d.ts +330 -347
  38. package/server/ExtendedDismaxParserBuilder/index.d.ts +156 -170
  39. package/server/FileIconRenderer/index.d.ts +153 -172
  40. package/server/FileUtil/index.d.ts +274 -300
  41. package/server/FilterBuilder/index.d.ts +42 -40
  42. package/server/FolderUtil/index.d.ts +93 -94
  43. package/server/FontUtil/index.d.ts +36 -37
  44. package/server/FormatterBuilderFactory/index.d.ts +76 -84
  45. package/server/HighlightBuilder/index.d.ts +79 -86
  46. package/server/IconUtil/index.d.ts +27 -25
  47. package/server/ImageLinkRenderer/index.d.ts +34 -32
  48. package/server/ImageRenderer/index.d.ts +343 -379
  49. package/server/ImageUtil/index.d.ts +247 -265
  50. package/server/IndexUtil/index.d.ts +40 -37
  51. package/server/IndexUtil.IndexType/index.d.ts +29 -0
  52. package/server/IndexUtil.IndexType/index.js +13 -0
  53. package/server/IndexingUtil/index.d.ts +69 -47
  54. package/server/InstanceCreatorUtil/index.d.ts +421 -457
  55. package/server/InstanceTypeUtil/index.d.ts +168 -189
  56. package/server/JwtUtil/index.d.ts +131 -129
  57. package/server/LandingPageUtil/index.d.ts +84 -87
  58. package/server/LandingPageUtil/index.js +1 -0
  59. package/server/LinkPageUtil/index.d.ts +297 -251
  60. package/server/LinkRenderer/index.d.ts +651 -715
  61. package/server/LinkTargetBuilder/index.d.ts +69 -77
  62. package/server/LinkValueBuilder/index.d.ts +70 -77
  63. package/server/ListWrapper/index.d.ts +82 -91
  64. package/server/LocaleUtil/index.d.ts +382 -394
  65. package/server/LogUtil/index.d.ts +119 -128
  66. package/server/MailBuilder/index.d.ts +109 -124
  67. package/server/MailUtil/index.d.ts +58 -63
  68. package/server/MathInstance/index.d.ts +625 -657
  69. package/server/MessageDigesterFactory/index.d.ts +30 -28
  70. package/server/MetadataDefinitionUtil/index.d.ts +79 -83
  71. package/server/MetadataUtil/index.d.ts +322 -346
  72. package/server/MimeTypeUtil/index.d.ts +209 -215
  73. package/server/MonitorBuilder/index.d.ts +20 -20
  74. package/server/NodeComparatorUtil/index.d.ts +215 -225
  75. package/server/NodeFactoryUtil/index.d.ts +18 -16
  76. package/server/NodeFilterUtil/index.d.ts +652 -739
  77. package/server/NodeIteratorUtil/index.d.ts +214 -229
  78. package/server/NodeResolverUtil/index.d.ts +400 -406
  79. package/server/NodeTreeUtil/index.d.ts +214 -229
  80. package/server/NodeTypeUtil/index.d.ts +1432 -548
  81. package/server/OfflineVersionPropertyUtil/index.d.ts +8 -6
  82. package/server/OnlineVersionPropertyUtil/index.d.ts +8 -6
  83. package/server/OutputUtil/index.d.ts +385 -380
  84. package/server/PageUtil/index.d.ts +266 -188
  85. package/server/PermissionUtil/index.d.ts +393 -430
  86. package/server/PermissionUtil.Permission/index.d.ts +54 -0
  87. package/server/PermissionUtil.Permission/index.js +38 -0
  88. package/server/PortletContextUtil/index.d.ts +112 -107
  89. package/server/PortletUtil/index.d.ts +32 -22
  90. package/server/PrincipalUtil/index.d.ts +35 -33
  91. package/server/Properties/index.d.ts +69 -76
  92. package/server/PropertyUtil/index.d.ts +1422 -1464
  93. package/server/PublishingUtil/index.d.ts +248 -249
  94. package/server/QueryStringUtil/index.d.ts +404 -415
  95. package/server/RedirectUtil/index.d.ts +64 -68
  96. package/server/RelatedValueBuilder/index.d.ts +45 -43
  97. package/server/Requester/index.d.ts +125 -125
  98. package/server/ResourceLocatorUtil/index.d.ts +436 -476
  99. package/server/RestApi/index.d.ts +158 -138
  100. package/server/RestAppInvokerFactory/index.d.ts +28 -26
  101. package/server/RoleAssignmentBuilder/index.d.ts +39 -37
  102. package/server/RoleMatcherBuilder/index.d.ts +39 -37
  103. package/server/RoleUtil/index.d.ts +35 -37
  104. package/server/ScriptUtil/index.d.ts +458 -495
  105. package/server/SearchFactory/index.d.ts +90 -105
  106. package/server/SearchUtil/index.d.ts +75 -73
  107. package/server/SearcherBuilder/index.d.ts +117 -124
  108. package/server/Session/index.d.ts +261 -1103
  109. package/server/Session/index.js +1 -20
  110. package/server/SimpleUserUtil/index.d.ts +28 -29
  111. package/server/SiteCookieUtil/index.d.ts +152 -175
  112. package/server/SortBuilder/index.d.ts +27 -25
  113. package/server/SourceSetMode/index.d.ts +12 -0
  114. package/server/SourceSetMode/index.js +12 -0
  115. package/server/SpellCheckBuilder/index.d.ts +30 -30
  116. package/server/StandardParserBuilder/index.d.ts +36 -34
  117. package/server/StructureUtil/index.d.ts +85 -83
  118. package/server/SubscriberUtil/index.d.ts +60 -67
  119. package/server/SubscriptionUtil/index.d.ts +123 -130
  120. package/server/SystemUserUtil/index.d.ts +148 -146
  121. package/server/TagUtil/index.d.ts +115 -120
  122. package/server/TemplateUtil/index.d.ts +115 -120
  123. package/server/TemporaryFileNodeBuilder/index.d.ts +32 -30
  124. package/server/TemporaryNodeBuilder/index.d.ts +139 -177
  125. package/server/TextModuleRendererBuilder/index.d.ts +22 -20
  126. package/server/TimestampUtil/index.d.ts +103 -117
  127. package/server/TranslationUtil/index.d.ts +98 -104
  128. package/server/TrashcanUtil/index.d.ts +114 -117
  129. package/server/UserDataUtil/index.d.ts +110 -111
  130. package/server/UserFactory/index.d.ts +47 -54
  131. package/server/UserFieldRenderer/index.d.ts +120 -128
  132. package/server/UserIdentityUtil/index.d.ts +38 -36
  133. package/server/UserUtil/index.d.ts +32 -30
  134. package/server/Utils/index.d.ts +634 -723
  135. package/server/VelocityRenderer/index.d.ts +96 -94
  136. package/server/VersionUtil/index.d.ts +25 -9
  137. package/server/WebContentUtil/index.d.ts +277 -284
  138. package/server/WebResourceFactory/index.d.ts +41 -46
  139. package/server/XSLTUtil/index.d.ts +34 -32
  140. package/server/XmlParserUtil/index.d.ts +50 -48
  141. package/types/javax/jcr/Binary/index.d.ts +3 -21
  142. package/types/javax/jcr/Binary/index.js +0 -1
  143. package/types/javax/jcr/Credentials/index.d.ts +3 -1
  144. package/types/javax/jcr/ImportUUIDBehavior/index.d.ts +27 -1
  145. package/types/javax/jcr/Item/index.d.ts +6 -119
  146. package/types/javax/jcr/Item/index.js +0 -6
  147. package/types/javax/jcr/ItemVisitor/index.d.ts +5 -3
  148. package/types/javax/jcr/NamespaceRegistry/index.d.ts +69 -43
  149. package/types/javax/jcr/NamespaceRegistry/index.js +0 -2
  150. package/types/javax/jcr/Node/index.d.ts +37 -1506
  151. package/types/javax/jcr/Node/index.js +1 -34
  152. package/types/javax/jcr/NodeIterator/index.d.ts +5 -3
  153. package/types/javax/jcr/Property/index.d.ts +494 -494
  154. package/types/javax/jcr/Property/index.js +0 -5
  155. package/types/javax/jcr/PropertyIterator/index.d.ts +5 -3
  156. package/types/javax/jcr/RangeIterator/index.d.ts +2 -42
  157. package/types/javax/jcr/RangeIterator/index.js +1 -5
  158. package/types/javax/jcr/Repository/index.d.ts +465 -263
  159. package/types/javax/jcr/Repository/index.js +0 -4
  160. package/types/javax/jcr/RepositoryFactory/index.d.ts +4 -2
  161. package/types/javax/jcr/Value/index.d.ts +4 -31
  162. package/types/javax/jcr/Value/index.js +0 -2
  163. package/types/javax/jcr/ValueFactory/index.d.ts +6 -74
  164. package/types/javax/jcr/ValueFactory/index.js +1 -2
  165. package/types/javax/jcr/Workspace/index.d.ts +103 -577
  166. package/types/javax/jcr/Workspace/index.js +1 -12
  167. package/types/javax/jcr/lock/Lock/index.d.ts +4 -2
  168. package/types/javax/jcr/lock/LockManager/index.d.ts +4 -2
  169. package/types/javax/jcr/nodetype/ItemDefinition/index.d.ts +4 -105
  170. package/types/javax/jcr/nodetype/ItemDefinition/index.js +0 -5
  171. package/types/javax/jcr/nodetype/NodeDefinition/index.d.ts +5 -3
  172. package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +4 -2
  173. package/types/javax/jcr/nodetype/NodeType/index.d.ts +262 -269
  174. package/types/javax/jcr/nodetype/NodeType/index.js +1 -12
  175. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +5 -107
  176. package/types/javax/jcr/nodetype/NodeTypeDefinition/index.js +1 -7
  177. package/types/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +5 -3
  178. package/types/javax/jcr/nodetype/NodeTypeManager/index.d.ts +9 -130
  179. package/types/javax/jcr/nodetype/NodeTypeManager/index.js +1 -8
  180. package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +4 -2
  181. package/types/javax/jcr/nodetype/PropertyDefinition/index.d.ts +5 -272
  182. package/types/javax/jcr/nodetype/PropertyDefinition/index.js +1 -7
  183. package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +5 -3
  184. package/types/javax/jcr/observation/Event/index.d.ts +85 -42
  185. package/types/javax/jcr/observation/EventIterator/index.d.ts +5 -3
  186. package/types/javax/jcr/observation/EventJournal/index.d.ts +4 -2
  187. package/types/javax/jcr/observation/EventListener/index.d.ts +4 -2
  188. package/types/javax/jcr/observation/EventListenerIterator/index.d.ts +5 -3
  189. package/types/javax/jcr/observation/ObservationManager/index.d.ts +6 -4
  190. package/types/javax/jcr/query/Query/index.d.ts +35 -12
  191. package/types/javax/jcr/query/QueryManager/index.d.ts +6 -4
  192. package/types/javax/jcr/query/QueryResult/index.d.ts +5 -3
  193. package/types/javax/jcr/query/Row/index.d.ts +5 -3
  194. package/types/javax/jcr/query/RowIterator/index.d.ts +5 -3
  195. package/types/javax/jcr/query/qom/And/index.d.ts +4 -2
  196. package/types/javax/jcr/query/qom/BindVariableValue/index.d.ts +4 -2
  197. package/types/javax/jcr/query/qom/ChildNode/index.d.ts +4 -2
  198. package/types/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +4 -2
  199. package/types/javax/jcr/query/qom/Column/index.d.ts +3 -1
  200. package/types/javax/jcr/query/qom/Comparison/index.d.ts +6 -4
  201. package/types/javax/jcr/query/qom/Constraint/index.d.ts +3 -1
  202. package/types/javax/jcr/query/qom/DescendantNode/index.d.ts +4 -2
  203. package/types/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +4 -2
  204. package/types/javax/jcr/query/qom/DynamicOperand/index.d.ts +4 -2
  205. package/types/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +4 -2
  206. package/types/javax/jcr/query/qom/FullTextSearch/index.d.ts +5 -3
  207. package/types/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +4 -2
  208. package/types/javax/jcr/query/qom/Join/index.d.ts +5 -3
  209. package/types/javax/jcr/query/qom/JoinCondition/index.d.ts +3 -1
  210. package/types/javax/jcr/query/qom/Length/index.d.ts +5 -3
  211. package/types/javax/jcr/query/qom/Literal/index.d.ts +5 -3
  212. package/types/javax/jcr/query/qom/LowerCase/index.d.ts +4 -2
  213. package/types/javax/jcr/query/qom/NodeLocalName/index.d.ts +4 -2
  214. package/types/javax/jcr/query/qom/NodeName/index.d.ts +4 -2
  215. package/types/javax/jcr/query/qom/Not/index.d.ts +4 -2
  216. package/types/javax/jcr/query/qom/Operand/index.d.ts +3 -1
  217. package/types/javax/jcr/query/qom/Or/index.d.ts +4 -2
  218. package/types/javax/jcr/query/qom/Ordering/index.d.ts +4 -2
  219. package/types/javax/jcr/query/qom/PropertyExistence/index.d.ts +4 -2
  220. package/types/javax/jcr/query/qom/PropertyValue/index.d.ts +4 -2
  221. package/types/javax/jcr/query/qom/QueryObjectModel/index.d.ts +8 -6
  222. package/types/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +76 -2
  223. package/types/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +37 -35
  224. package/types/javax/jcr/query/qom/SameNode/index.d.ts +4 -2
  225. package/types/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +4 -2
  226. package/types/javax/jcr/query/qom/Selector/index.d.ts +4 -2
  227. package/types/javax/jcr/query/qom/Source/index.d.ts +3 -1
  228. package/types/javax/jcr/query/qom/StaticOperand/index.d.ts +4 -2
  229. package/types/javax/jcr/query/qom/UpperCase/index.d.ts +4 -2
  230. package/types/javax/jcr/retention/Hold/index.d.ts +3 -1
  231. package/types/javax/jcr/retention/RetentionManager/index.d.ts +5 -3
  232. package/types/javax/jcr/retention/RetentionPolicy/index.d.ts +3 -1
  233. package/types/javax/jcr/security/AccessControlEntry/index.d.ts +4 -2
  234. package/types/javax/jcr/security/AccessControlList/index.d.ts +6 -4
  235. package/types/javax/jcr/security/AccessControlManager/index.d.ts +6 -4
  236. package/types/javax/jcr/security/AccessControlPolicy/index.d.ts +3 -1
  237. package/types/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +5 -3
  238. package/types/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +4 -2
  239. package/types/javax/jcr/security/Privilege/index.d.ts +130 -44
  240. package/types/javax/jcr/version/Version/index.d.ts +5 -3
  241. package/types/javax/jcr/version/VersionHistory/index.d.ts +7 -5
  242. package/types/javax/jcr/version/VersionIterator/index.d.ts +5 -3
  243. package/types/javax/jcr/version/VersionManager/index.d.ts +7 -5
  244. package/types/senselogic/sitevision/api/base/Builder/index.d.ts +3 -1
  245. package/types/senselogic/sitevision/api/base/Filter/index.d.ts +3 -1
  246. package/types/senselogic/sitevision/api/base/FilterSplit/index.d.ts +4 -2
  247. package/types/senselogic/sitevision/api/base/Loadable/index.d.ts +3 -1
  248. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.d.ts +9 -0
  249. package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.js +11 -0
  250. package/types/senselogic/sitevision/api/base/Resolver/index.d.ts +3 -1
  251. package/types/senselogic/sitevision/api/base/Wrapper/index.d.ts +3 -1
  252. package/types/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +13 -7
  253. package/types/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +3 -1
  254. package/types/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +5 -3
  255. package/types/senselogic/sitevision/api/i18n/Currency/index.d.ts +3 -1
  256. package/types/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +5 -3
  257. package/types/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +3 -1
  258. package/types/senselogic/sitevision/api/mail/Mail/index.d.ts +3 -1
  259. package/types/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +3 -1
  260. package/types/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +3 -1
  261. package/types/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +3 -1
  262. package/types/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +4 -2
  263. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.d.ts +51 -0
  264. package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.js +12 -0
  265. package/types/senselogic/sitevision/api/render/ImageScaler/index.d.ts +4 -2
  266. package/types/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +4 -2
  267. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +3 -1
  268. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.d.ts +85 -0
  269. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.js +21 -0
  270. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.d.ts +31 -0
  271. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.js +12 -0
  272. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.d.ts +31 -0
  273. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.js +12 -0
  274. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.d.ts +67 -0
  275. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.js +18 -0
  276. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.d.ts +25 -0
  277. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.js +11 -0
  278. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.d.ts +19 -0
  279. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.js +10 -0
  280. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +1243 -0
  281. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +189 -0
  282. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.d.ts +31 -0
  283. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.js +12 -0
  284. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.d.ts +91 -0
  285. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.js +22 -0
  286. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.d.ts +27 -0
  287. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.js +11 -0
  288. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.d.ts +19 -0
  289. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.js +10 -0
  290. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.d.ts +19 -0
  291. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.js +10 -0
  292. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.d.ts +25 -0
  293. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.js +11 -0
  294. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.d.ts +37 -0
  295. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.js +13 -0
  296. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.d.ts +25 -0
  297. package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.js +11 -0
  298. package/types/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +3 -1
  299. package/types/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +3 -1
  300. package/types/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +4 -2
  301. package/types/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +3 -1
  302. package/types/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +3 -1
  303. package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +3 -1
  304. package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +4 -2
  305. package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +24 -2
  306. package/types/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +3 -1
  307. package/types/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +4 -2
  308. package/types/senselogic/sitevision/api/search/SearchHit/index.d.ts +19 -3
  309. package/types/senselogic/sitevision/api/search/SearchResult/index.d.ts +31 -7
  310. package/types/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +3 -1
  311. package/types/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +3 -1
  312. package/types/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +4 -2
  313. package/types/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +3 -1
  314. package/types/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +3 -1
  315. package/types/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +3 -1
  316. package/types/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +3 -1
  317. package/types/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +3 -1
  318. package/types/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +3 -1
  319. package/types/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +3 -1
  320. package/types/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +3 -1
  321. package/types/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +3 -1
  322. package/types/senselogic/sitevision/api/security/MessageDigester/index.d.ts +3 -1
  323. package/types/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +4 -2
  324. package/types/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +4 -2
  325. package/types/senselogic/sitevision/api/security/SecretStore/index.d.ts +3 -1
  326. package/types/senselogic/sitevision/api/security/UserUtil/index.d.ts +4 -2
  327. package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +35 -3
  328. package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +3 -1
  329. package/types/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +5 -3
  330. package/types/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +3 -1
  331. package/types/senselogic/sitevision/api/xml/XmlElement/index.d.ts +3 -1
  332. package/types/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +4 -2
@@ -1,643 +1,3 @@
1
- /**
2
- * Sorts the specified list into ascending order, according to the <i>natural ordering</i> of its elements.
3
- * @param <T> the class of the objects in the list
4
- * @param aList the list to be sorted.
5
- * @throws ClassCastException if the list contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
6
- * @throws UnsupportedOperationException if the specified list's list-iterator does not support the <tt>set</tt> operation.
7
- */
8
- export function sort(aList: unknown): void;
9
-
10
- /**
11
- * Sorts the specified list according to the order induced by the specified comparator.
12
- * @param <T> the class of the objects in the list
13
- * @param aList the list to be sorted.
14
- * @param aComparator the comparator to determine the order of the list. A <tt>null</tt> value indicates that the elements' <i>natural ordering</i> should be used.
15
- * @throws ClassCastException if the list contains elements that are not <i>mutually comparable</i> using the specified comparator.
16
- * @throws UnsupportedOperationException if the specified list's list-iterator does not support the <tt>set</tt> operation.
17
- */
18
- export function sort(aList: unknown, aComparator: unknown): void;
19
-
20
- /**
21
- * Searches the specified list for the specified object using the binary search algorithm.
22
- * @param <T> the class of the objects in the list
23
- * @param aList the list to be searched.
24
- * @param aKey the key to be searched for.
25
- * @return the index of the search key, if it is contained in the list; 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 list: the index of the first element greater than the key, or <tt>aList.size()</tt> if all elements in the list 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.
26
- * @throws ClassCastException if the list contains elements that are not <i>mutually comparable</i> (for example, strings and integers), or the search key is not mutually comparable with the elements of the list.
27
- */
28
- export function binarySearch(aList: unknown, aKey: unknown): number;
29
-
30
- /**
31
- * Searches the specified list for the specified object using the binary search algorithm.
32
- * @param <T> the class of the objects in the list
33
- * @param aList the list to be searched.
34
- * @param aKey the key to be searched for.
35
- * @param aComparator the comparator by which the list is ordered. A <tt>null</tt> value indicates that the elements' Comparable natural ordering should be used.
36
- * @return the index of the search key, if it is contained in the list; 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 list: the index of the first element greater than the key, or <tt>aList.size()</tt> if all elements in the list 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.
37
- * @throws ClassCastException if the list contains elements that are not <i>mutually comparable</i> using the specified comparator, or the search key is not mutually comparable with the elements of the list using this comparator.
38
- */
39
- export function binarySearch(
40
- aList: unknown,
41
- aKey: unknown,
42
- aComparator: unknown
43
- ): number;
44
-
45
- /**
46
- * Reverses the order of the elements in the specified list.
47
- * @param aList the list whose elements are to be reversed.
48
- * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
49
- */
50
- export function reverse(aList: unknown): void;
51
-
52
- /**
53
- * Randomly permutes the specified list using a default source of randomness.
54
- * @param aList the list to be shuffled.
55
- * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
56
- */
57
- export function shuffle(aList: unknown): void;
58
-
59
- /**
60
- * Randomly permute the specified list using the specified source of randomness.
61
- * @param aList the list to be shuffled.
62
- * @param aRandom the source of randomness to use to shuffle the list.
63
- * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
64
- */
65
- export function shuffle(aList: unknown, aRandom: unknown): void;
66
-
67
- /**
68
- * Swaps the elements at the specified positions in the specified list.
69
- * @param aList The list in which to swap elements.
70
- * @param anIndex the index of one element to be swapped.
71
- * @param anAnotherIndex the index of the other element to be swapped.
72
- * @throws IndexOutOfBoundsException if either <tt>anIndex</tt> or <tt>j</tt> is out of range (anIndex &lt; 0 || anIndex &gt;= aList.size() || anAnotherIndex &lt; 0 || anAnotherIndex &gt;= aList.size()).
73
- */
74
- export function swap(
75
- aList: unknown,
76
- anIndex: number,
77
- anAnotherIndex: number
78
- ): void;
79
-
80
- /**
81
- * Replaces all of the elements of the specified list with the specified element.
82
- * @param <T> the class of the objects in the list
83
- * @param aList the list to be filled with the specified element.
84
- * @param aValue The element with which to fill the specified list.
85
- * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
86
- */
87
- export function fill(aList: unknown, aValue: unknown): void;
88
-
89
- /**
90
- * Copies all of the elements from one list into another.
91
- * @param <T> the class of the objects in the list
92
- * @param aDestination The destination list.
93
- * @param aSource The source list.
94
- * @throws IndexOutOfBoundsException if the destination list is too small to contain the entire source List.
95
- * @throws UnsupportedOperationException if the destination list's list-iterator does not support the <tt>set</tt> operation.
96
- */
97
- export function copy(aDestination: unknown, aSource: unknown): void;
98
-
99
- /**
100
- * Returns the minimum element of the given collection, according to the <i>natural ordering</i> of its elements.
101
- * @param <T> the class of the objects in the collection
102
- * @param aCollection the collection whose minimum element is to be determined.
103
- * @return the minimum element of the given collection, according to the <i>natural ordering</i> of its elements.
104
- * @throws ClassCastException if the collection contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
105
- * @throws NoSuchElementException if the collection is empty.
106
- */
107
- export function min(aCollection: unknown): unknown;
108
-
109
- /**
110
- * Returns the minimum element of the given collection, according to the order induced by the specified comparator.
111
- * @param <T> the class of the objects in the collection
112
- * @param aCollection the collection whose minimum element is to be determined.
113
- * @param aComparator the comparator with which to determine the minimum element. A <tt>null</tt> value indicates that the elements' <i>natural ordering</i> should be used.
114
- * @return the minimum element of the given collection, according to the specified comparator.
115
- * @throws ClassCastException if the collection contains elements that are not <i>mutually comparable</i> using the specified comparator.
116
- * @throws NoSuchElementException if the collection is empty.
117
- */
118
- export function min(aCollection: unknown, aComparator: unknown): unknown;
119
-
120
- /**
121
- * Returns the maximum element of the given collection, according to the
122
- * <i>natural ordering</i> of its elements.
123
- * @param <T> the class of the objects in the collection
124
- * @param aCollection the collection whose maximum element is to be determined.
125
- * @return the maximum element of the given collection, according to the <i>natural ordering</i> of its elements.
126
- * @throws ClassCastException if the collection contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
127
- * @throws NoSuchElementException if the collection is empty.
128
- */
129
- export function max(aCollection: unknown): unknown;
130
-
131
- /**
132
- * Returns the maximum element of the given collection, according to the
133
- * order induced by the specified comparator.
134
- * @param <T> the class of the objects in the collection
135
- * @param aCollection the collection whose maximum element is to be determined.
136
- * @param aComparator the comparator with which to determine the maximum element. A <tt>null</tt> value indicates that the elements' <i>natural ordering</i> should be used.
137
- * @return the maximum element of the given collection, according to the specified comparator.
138
- * @throws ClassCastException if the collection contains elements that are not <i>mutually comparable</i> using the specified comparator.
139
- * @throws NoSuchElementException if the collection is empty.
140
- */
141
- export function max(aCollection: unknown, aComparator: unknown): unknown;
142
-
143
- /**
144
- * Rotates the elements in the specified list by the specified distance.
145
- * @param aList the list to be rotated.
146
- * @param aDistance the distance to rotate the list. There are no constraints on this value; it may be zero, negative, or greater than <tt>aList.size()</tt>.
147
- * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
148
- */
149
- export function rotate(aList: unknown, aDistance: number): void;
150
-
151
- /**
152
- * Replaces all occurrences of one specified value in a list with another.
153
- * @param <T> the class of the objects in the list
154
- * @param aList the list in which replacement is to occur.
155
- * @param anOldValue the old value to be replaced.
156
- * @param aNewValue the new value with which <tt>anOldValue</tt> is to be replaced.
157
- * @return <tt>true</tt> if <tt>aList</tt> contained one or more elements <tt>e</tt> such that <tt>(anOldValue==null ? e==null : anOldValue.equals(e))</tt>.
158
- * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
159
- */
160
- export function replaceAll(
161
- aList: unknown,
162
- anOldValue: unknown,
163
- aNewValue: unknown
164
- ): boolean;
165
-
166
- /**
167
- * Returns the starting position of the first occurrence of the specified
168
- * target list within the specified source list, or -1 if there is no such occurrence.
169
- * @param aSource the list in which to search for the first occurrence of <tt>target</tt>.
170
- * @param aTarget the list to search for as a subList of <tt>aSource</tt>.
171
- * @return the starting position of the first occurrence of the specified target list within the specified source list, or -1 if there is no such occurrence.
172
- */
173
- export function indexOfSubList(aSource: unknown, aTarget: unknown): number;
174
-
175
- /**
176
- * Returns the starting position of the last occurrence of the specified
177
- * target list within the specified source list, or -1 if there is no such occurrence.
178
- * @param aSource the list in which to search for the last occurrence of <tt>target</tt>.
179
- * @param aTarget the list to search for as a subList of <tt>aSource</tt>.
180
- * @return the starting position of the last occurrence of the specified target list within the specified source list, or -1 if there is no such occurrence.
181
- */
182
- export function lastIndexOfSubList(aSource: unknown, aTarget: unknown): number;
183
-
184
- /**
185
- * Returns an unmodifiable view of the specified collection.
186
- * @param <T> the class of the objects in the collection
187
- * @param aCollection the collection for which an unmodifiable view is to be returned.
188
- * @return an unmodifiable view of the specified collection.
189
- */
190
- export function unmodifiableCollection(aCollection: unknown): unknown;
191
-
192
- /**
193
- * Returns an unmodifiable view of the specified set.
194
- * @param <T> the class of the objects in the set
195
- * @param aSet the set for which an unmodifiable view is to be returned.
196
- * @return an unmodifiable view of the specified set.
197
- */
198
- export function unmodifiableSet(aSet: unknown): unknown;
199
-
200
- /**
201
- * Returns an unmodifiable view of the specified sorted set.
202
- * @param <T> the class of the objects in the set
203
- * @param aSet the sorted set for which an unmodifiable view is to be returned.
204
- * @return an unmodifiable view of the specified sorted set.
205
- */
206
- export function unmodifiableSortedSet(aSet: unknown): unknown;
207
-
208
- /**
209
- * Returns an unmodifiable view of the specified list.
210
- * @param <T> the class of the objects in the list
211
- * @param aList the list for which an unmodifiable view is to be returned.
212
- * @return an unmodifiable view of the specified list.
213
- */
214
- export function unmodifiableList(aList: unknown): unknown;
215
-
216
- /**
217
- * Returns an unmodifiable view of the specified map.
218
- * @param <K> the class of the map keys
219
- * @param <V> the class of the map values
220
- * @param aMap the map for which an unmodifiable view is to be returned.
221
- * @return an unmodifiable view of the specified map.
222
- */
223
- export function unmodifiableMap(aMap: unknown): unknown;
224
-
225
- /**
226
- * Returns an unmodifiable view of the specified sorted map.
227
- * @param <K> the class of the map keys
228
- * @param <V> the class of the map values
229
- * @param aMap the sorted map for which an unmodifiable view is to be returned.
230
- * @return an unmodifiable view of the specified sorted map.
231
- */
232
- export function unmodifiableSortedMap(aMap: unknown): unknown;
233
-
234
- /**
235
- * Returns a synchronized (thread-safe) collection backed by the specified collection.
236
- * @param <T> the class of the objects in the collection
237
- * @param aCollection the collection to be "wrapped" in a synchronized collection.
238
- * @return a synchronized view of the specified collection.
239
- */
240
- export function synchronizedCollection(aCollection: unknown): unknown;
241
-
242
- /**
243
- * Returns a synchronized (thread-safe) set backed by the specified set.
244
- * @param <T> the class of the objects in the set
245
- * @param aSet the set to be "wrapped" in a synchronized set.
246
- * @return a synchronized view of the specified set.
247
- */
248
- export function synchronizedSet(aSet: unknown): unknown;
249
-
250
- /**
251
- * Returns a synchronized (thread-safe) sorted set backed by the specified sorted set.
252
- * @param <T> the class of the objects in the set
253
- * @param aSet the sorted set to be "wrapped" in a synchronized sorted set.
254
- * @return a synchronized view of the specified sorted set.
255
- */
256
- export function synchronizedSortedSet(aSet: unknown): unknown;
257
-
258
- /**
259
- * Returns a synchronized (thread-safe) list backed by the specified list.
260
- * @param <T> the class of the objects in the list
261
- * @param aList the list to be "wrapped" in a synchronized list.
262
- * @return a synchronized view of the specified list.
263
- */
264
- export function synchronizedList(aList: unknown): unknown;
265
-
266
- /**
267
- * Returns a synchronized (thread-safe) map backed by the specified map.
268
- * @param <K> the class of the map keys
269
- * @param <V> the class of the map values
270
- * @param aMap the map to be "wrapped" in a synchronized map.
271
- * @return a synchronized view of the specified map.
272
- */
273
- export function synchronizedMap(aMap: unknown): unknown;
274
-
275
- /**
276
- * Returns a synchronized (thread-safe) sorted map backed by the specified sorted map.
277
- * @param <K> the class of the map keys
278
- * @param <V> the class of the map values
279
- * @param aMap the sorted map to be "wrapped" in a synchronized sorted map.
280
- * @return a synchronized view of the specified sorted map.
281
- */
282
- export function synchronizedSortedMap(aMap: unknown): unknown;
283
-
284
- /**
285
- * Returns a dynamically typesafe view of the specified collection.
286
- * @param <E> the class of the objects in the collection
287
- * @param aCollection the collection for which a dynamically typesafe view is to be returned
288
- * @param aType the type of element that <tt>aCollection</tt> is permitted to hold
289
- * @return a dynamically typesafe view of the specified collection
290
- */
291
- export function checkedCollection(
292
- aCollection: unknown,
293
- aType: unknown
294
- ): unknown;
295
-
296
- /**
297
- * Returns a dynamically typesafe view of the specified set.
298
- * @param <E> the class of the objects in the set
299
- * @param aSet the set for which a dynamically typesafe view is to be returned
300
- * @param aType the type of element that <tt>aSet</tt> is permitted to hold
301
- * @return a dynamically typesafe view of the specified set
302
- */
303
- export function checkedSet(aSet: unknown, aType: unknown): unknown;
304
-
305
- /**
306
- * Returns a dynamically typesafe view of the specified sorted set.
307
- * @param <E> the class of the objects in the set
308
- * @param aSet the sorted set for which a dynamically typesafe view is to be returned
309
- * @param aType the type of element that <tt>aSet</tt> is permitted to hold
310
- * @return a dynamically typesafe view of the specified sorted set
311
- */
312
- export function checkedSortedSet(aSet: unknown, aType: unknown): unknown;
313
-
314
- /**
315
- * Returns a dynamically typesafe view of the specified list.
316
- * @param <E> the class of the objects in the list
317
- * @param aList the list for which a dynamically typesafe view is to be returned
318
- * @param aType the type of element that <tt>aList</tt> is permitted to hold
319
- * @return a dynamically typesafe view of the specified list
320
- */
321
- export function checkedList(aList: unknown, aType: unknown): unknown;
322
-
323
- /**
324
- * Returns a dynamically typesafe view of the specified map.
325
- * @param <K> the class of the map keys
326
- * @param <V> the class of the map values
327
- * @param aMap the map for which a dynamically typesafe view is to be returned
328
- * @param aKeyType the type of key that <tt>aMap</tt> is permitted to hold
329
- * @param aValueType the type of value that <tt>aMap</tt> is permitted to hold
330
- * @return a dynamically typesafe view of the specified map
331
- */
332
- export function checkedMap(
333
- aMap: unknown,
334
- aKeyType: unknown,
335
- aValueType: unknown
336
- ): unknown;
337
-
338
- /**
339
- * Returns a dynamically typesafe view of the specified sorted map.
340
- * @param <K> the class of the map keys
341
- * @param <V> the class of the map values
342
- * @param aMap the map for which a dynamically typesafe view is to be returned
343
- * @param aKeyType the type of key that <tt>aMap</tt> is permitted to hold
344
- * @param aValueType the type of value that <tt>aMap</tt> is permitted to hold
345
- * @return a dynamically typesafe view of the specified map
346
- */
347
- export function checkedSortedMap(
348
- aMap: unknown,
349
- aKeyType: unknown,
350
- aValueType: unknown
351
- ): unknown;
352
-
353
- /**
354
- * Returns the empty set (immutable).
355
- * @param <T> the class of the objects in the set
356
- * @return the empty set
357
- */
358
- export function emptySet(): unknown;
359
-
360
- /**
361
- * Returns the empty list (immutable).
362
- * @param <T> the class of the objects in the list
363
- * @return the empty list
364
- */
365
- export function emptyList(): unknown;
366
-
367
- /**
368
- * Returns the empty map (immutable).
369
- * @param <K> the class of the map keys
370
- * @param <V> the class of the map values
371
- * @return the empty map
372
- */
373
- export function emptyMap(): unknown;
374
-
375
- /**
376
- * Returns an immutable set containing only the specified object.
377
- * @param <T> the class of the objects in the set
378
- * @param aValue the sole object to be stored in the returned set.
379
- * @return an immutable set containing only the specified object.
380
- */
381
- export function singleton(aValue: unknown): unknown;
382
-
383
- /**
384
- * Returns an immutable list containing only the specified object.
385
- * @param <T> the class of the objects in the list
386
- * @param aValue the sole object to be stored in the returned list.
387
- * @return an immutable list containing only the specified object.
388
- */
389
- export function singletonList(aValue: unknown): unknown;
390
-
391
- /**
392
- * Returns an immutable map, mapping only the specified key to the specified value.
393
- * @param <K> the class of the map keys
394
- * @param <V> the class of the map values
395
- * @param key the sole key to be stored in the returned map.
396
- * @param aValue the value to which the returned map maps <tt>key</tt>.
397
- * @return an immutable map containing only the specified key-value mapping.
398
- */
399
- export function singletonMap(key: unknown, aValue: unknown): unknown;
400
-
401
- /**
402
- * Returns an immutable list consisting of <tt>n</tt> copies of the specified object.
403
- * @param <T> the class of the objects in the list
404
- * @param aCount the number of elements in the returned list.
405
- * @param aValue the element to appear repeatedly in the returned list.
406
- * @return an immutable list consisting of <tt>aCount</tt> copies of the specified object.
407
- * @throws IllegalArgumentException if <tt>aCount &lt; 0</tt>.
408
- */
409
- export function nCopies(aCount: number, aValue: unknown): unknown;
410
-
411
- /**
412
- * Returns a comparator that imposes the reverse of the <i>natural ordering</i> on a collection of objects that implement
413
- * the <tt>Comparable</tt> interface.
414
- * @param <T> the class of the objects compared by the comparator
415
- * @return a comparator that imposes the reverse of the <i>natural ordering</i> on a collection of objects that implement the <tt>Comparable</tt> interface.
416
- */
417
- export function reverseOrder(): unknown;
418
-
419
- /**
420
- * Returns a comparator that imposes the reverse ordering of the specified comparator.
421
- * @param <T> the class of the objects compared by the comparator
422
- * @param aComparator the Comparator
423
- * @return a comparator that imposes the reverse ordering of the specified comparator.
424
- */
425
- export function reverseOrder(aComparator: unknown): unknown;
426
-
427
- /**
428
- * Returns an enumeration over the specified collection.
429
- * @param <T> the class of the objects in the collection
430
- * @param aCollection the collection for which an enumeration is to be returned.
431
- * @return an enumeration over the specified collection.
432
- */
433
- export function enumeration(aCollection: unknown): unknown;
434
-
435
- /**
436
- * Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration.
437
- * @param <T> the class of the objects in the enumeration
438
- * @param anEnumeration enumeration providing elements for the returned array list
439
- * @return an array list containing the elements returned by the specified enumeration.
440
- */
441
- export function list(anEnumeration: unknown): unknown;
442
-
443
- /**
444
- * Returns the number of elements in the specified collection equal to the specified object.
445
- * @param aCollection the collection in which to determine the frequency of <tt>aValue</tt>
446
- * @param aValue the object whose frequency is to be determined
447
- * @return the number of elements in {@code aCollection} equal to {@code aValue}
448
- * @throws NullPointerException if <tt>aCollection</tt> is null
449
- */
450
- export function frequency(aCollection: unknown, aValue: unknown): number;
451
-
452
- /**
453
- * Returns <tt>true</tt> if the two specified collections have no elements in common.
454
- * @param aCollection a collection
455
- * @param anAnotherCollection a collection
456
- * @return {@code true} if the two specified collections have no elements in common.
457
- * @throws NullPointerException if either collection is null
458
- */
459
- export function disjoint(
460
- aCollection: unknown,
461
- anAnotherCollection: unknown
462
- ): boolean;
463
-
464
- /**
465
- * Adds all of the specified elements to the specified collection.
466
- * @param <T> the class of the elements to add and of the collection
467
- * @param aCollection the collection into which <tt>elements</tt> are to be inserted
468
- * @param aValues the elements to insert into <tt>aCollection</tt>
469
- * @return <tt>true</tt> if the collection changed as a result of the call
470
- * @throws UnsupportedOperationException if <tt>aCollection</tt> does not support the <tt>add</tt> operation
471
- * @throws NullPointerException if <tt>aValues</tt> contains one or more null values and <tt>aCollection</tt> does not permit null elements, or if <tt>aCollection</tt> or <tt>aValues</tt> are <tt>null</tt>
472
- * @throws IllegalArgumentException if some property of a value in <tt>aValues</tt> prevents it from being added to <tt>aCollection</tt>
473
- */
474
- export function addAll(aCollection: unknown, aValues: unknown): boolean;
475
-
476
- /**
477
- * Returns a set backed by the specified map.
478
- * @param <E> the class of the map keys and of the objects in the returned set
479
- * @param aMap the backing map
480
- * @return the set backed by the map
481
- * @throws IllegalArgumentException if <tt>aMap</tt> is not empty
482
- */
483
- export function newSetFromMap(aMap: unknown): unknown;
484
-
485
- /**
486
- * Returns a view of a <code>Deque</code> as a Last-in-first-out (Lifo) <code>Queue</code>.
487
- * @param <T> the class of the objects in the deque
488
- * @param aDeque the deque
489
- * @return the queue
490
- */
491
- export function asLifoQueue(aDeque: unknown): unknown;
492
-
493
- /**
494
- * Returns an iterator that has no elements.
495
- * @param <T> type of elements, if there were any, in the iterator
496
- * @return an empty iterator
497
- * @since Sitevision 4.0
498
- * @since Java 1.7
499
- */
500
- export function emptyIterator(): unknown;
501
-
502
- /**
503
- * Returns a list iterator that has no elements.
504
- * @param <T> type of elements, if there were any, in the iterator
505
- * @return an empty list iterator
506
- * @since Sitevision 4.0
507
- * @since Java 1.7
508
- */
509
- export function emptyListIterator(): unknown;
510
-
511
- /**
512
- * Returns an enumeration that has no elements.
513
- * @param <T> the class of the objects in the enumeration
514
- * @return an empty enumeration
515
- * @since Sitevision 4.0
516
- * @since Java 1.7
517
- */
518
- export function emptyEnumeration(): unknown;
519
-
520
- /**
521
- * Returns an unmodifiable view of the specified navigable set.
522
- * @param <T> the class of the objects in the set
523
- * @param s the navigable set for which an unmodifiable view is to be returned
524
- * @return an unmodifiable view of the specified navigable set
525
- * @since Sitevision 4.0
526
- * @since Java 1.8
527
- */
528
- export function unmodifiableNavigableSet(s: unknown): unknown;
529
-
530
- /**
531
- * Returns an unmodifiable view of the specified navigable map.
532
- * @param <K> the class of the map keys
533
- * @param <V> the class of the map values
534
- * @param m the navigable map for which an unmodifiable view is to be returned
535
- * @return an unmodifiable view of the specified navigable map
536
- * @since Sitevision 4.0
537
- * @since Java 1.8
538
- */
539
- export function unmodifiableNavigableMap(m: unknown): unknown;
540
-
541
- /**
542
- * Returns a synchronized (thread-safe) navigable set backed by the
543
- * specified navigable set.
544
- * @param <T> the class of the objects in the set
545
- * @param s the navigable set to be "wrapped" in a synchronized navigableset
546
- * @return a synchronized view of the specified navigable set
547
- * @since Sitevision 4.0
548
- * @since Java 1.8
549
- */
550
- export function synchronizedNavigableSet(s: unknown): unknown;
551
-
552
- /**
553
- * Returns a synchronized (thread-safe) navigable map backed by the
554
- * specified navigable map.
555
- * @param <K> the class of the map keys
556
- * @param <V> the class of the map values
557
- * @param m the navigable map to be "wrapped" in a synchronized navigable map
558
- * @return a synchronized view of the specified navigable map.
559
- * @since Sitevision 4.0
560
- * @since Java 1.8
561
- */
562
- export function synchronizedNavigableMap(m: unknown): unknown;
563
-
564
- /**
565
- * Returns a dynamically typesafe view of the specified queue.
566
- * @param <E> the class of the objects in the queue
567
- * @param queue the queue for which a dynamically typesafe view is to be returned
568
- * @param type the type of element that {@code queue} is permitted to hold
569
- * @return a dynamically typesafe view of the specified queue
570
- * @since Sitevision 4.0
571
- * @since Java 1.8
572
- */
573
- export function checkedQueue(queue: unknown, type: unknown): unknown;
574
-
575
- /**
576
- * Returns a dynamically typesafe view of the specified navigable set.
577
- * @param <E> the class of the objects in the set
578
- * @param s the navigable set for which a dynamically typesafe view is to be returned
579
- * @param type the type of element that {@code s} is permitted to hold
580
- * @return a dynamically typesafe view of the specified navigable set
581
- * @since Sitevision 4.0
582
- * @since Java 1.8
583
- */
584
- export function checkedNavigableSet(s: unknown, type: unknown): unknown;
585
-
586
- /**
587
- * Returns a dynamically typesafe view of the specified navigable map.
588
- * @param <K> type of map keys
589
- * @param <V> type of map values
590
- * @param m the map for which a dynamically typesafe view is to be returned
591
- * @param keyType the type of key that {@code m} is permitted to hold
592
- * @param valueType the type of value that {@code m} is permitted to hold
593
- * @return a dynamically typesafe view of the specified map
594
- * @since Sitevision 4.0
595
- * @since Java 1.8
596
- */
597
- export function checkedNavigableMap(
598
- m: unknown,
599
- keyType: unknown,
600
- valueType: unknown
601
- ): unknown;
602
-
603
- /**
604
- * Returns an empty sorted set (immutable).
605
- * @param <E> type of elements, if there were any, in the set
606
- * @return the empty sorted set
607
- * @since Sitevision 4.0
608
- * @since Java 1.8
609
- */
610
- export function emptySortedSet(): unknown;
611
-
612
- /**
613
- * Returns an empty navigable set (immutable).
614
- * @param <E> type of elements, if there were any, in the set
615
- * @return the empty navigable set
616
- * @since Sitevision 4.0
617
- * @since Java 1.8
618
- */
619
- export function emptyNavigableSet(): unknown;
620
-
621
- /**
622
- * Returns an empty sorted map (immutable).
623
- * @param <K> the class of the map keys
624
- * @param <V> the class of the map values
625
- * @return an empty sorted map
626
- * @since Sitevision 4.0
627
- * @since Java 1.8
628
- */
629
- export function emptySortedMap(): unknown;
630
-
631
- /**
632
- * Returns an empty navigable map (immutable).
633
- * @param <K> the class of the map keys
634
- * @param <V> the class of the map values
635
- * @return an empty navigable map
636
- * @since Sitevision 4.0
637
- * @since Java 1.8
638
- */
639
- export function emptyNavigableMap(): unknown;
640
-
641
1
  /**
642
2
  * Instance wrapper for the <code>java.util.Collections</code> class that delegates all method calls to
643
3
  * the corresponding <code>Collections</code> method.
@@ -649,73 +9,650 @@ export function emptyNavigableMap(): unknown;
649
9
  * <p>
650
10
  * An instance of the Sitevision class implementing this interface can be obtained via {@link InstanceCreatorUtil#getCollectionsInstance()}.
651
11
  * See {@link InstanceCreatorUtil} for how to obtain an instance of the <code>InstanceCreatorUtil</code> interface.
652
- * </p>The empty set (immutable).The empty list (immutable).The empty map (immutable).
12
+ * </p>
653
13
  * @author Magnus Lövgren
654
14
  * @since Sitevision 3.1
655
15
  */
656
- declare namespace collectionsInstance {
657
- export {
658
- sort,
659
- binarySearch,
660
- reverse,
661
- shuffle,
662
- swap,
663
- fill,
664
- copy,
665
- min,
666
- max,
667
- rotate,
668
- replaceAll,
669
- indexOfSubList,
670
- lastIndexOfSubList,
671
- unmodifiableCollection,
672
- unmodifiableSet,
673
- unmodifiableSortedSet,
674
- unmodifiableList,
675
- unmodifiableMap,
676
- unmodifiableSortedMap,
677
- synchronizedCollection,
678
- synchronizedSet,
679
- synchronizedSortedSet,
680
- synchronizedList,
681
- synchronizedMap,
682
- synchronizedSortedMap,
683
- checkedCollection,
684
- checkedSet,
685
- checkedSortedSet,
686
- checkedList,
687
- checkedMap,
688
- checkedSortedMap,
689
- emptySet,
690
- emptyList,
691
- emptyMap,
692
- singleton,
693
- singletonList,
694
- singletonMap,
695
- nCopies,
696
- reverseOrder,
697
- enumeration,
698
- list,
699
- frequency,
700
- disjoint,
701
- addAll,
702
- newSetFromMap,
703
- asLifoQueue,
704
- emptyIterator,
705
- emptyListIterator,
706
- emptyEnumeration,
707
- unmodifiableNavigableSet,
708
- unmodifiableNavigableMap,
709
- synchronizedNavigableSet,
710
- synchronizedNavigableMap,
711
- checkedQueue,
712
- checkedNavigableSet,
713
- checkedNavigableMap,
714
- emptySortedSet,
715
- emptyNavigableSet,
716
- emptySortedMap,
717
- emptyNavigableMap,
718
- };
16
+ export interface CollectionsInstance {
17
+ /**
18
+ * The empty set (immutable).
19
+
20
+ */
21
+ EMPTY_SET: unknown;
22
+
23
+ /**
24
+ * The empty list (immutable).
25
+
26
+ */
27
+ EMPTY_LIST: unknown;
28
+
29
+ /**
30
+ * The empty map (immutable).
31
+
32
+ */
33
+ EMPTY_MAP: unknown;
34
+
35
+ /**
36
+ * Sorts the specified list into ascending order, according to the <i>natural ordering</i> of its elements.
37
+ * @param <T> the class of the objects in the list
38
+ * @param aList the list to be sorted.
39
+ * @throws ClassCastException if the list contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
40
+ * @throws UnsupportedOperationException if the specified list's list-iterator does not support the <tt>set</tt> operation.
41
+ */
42
+ sort(aList: unknown): void;
43
+
44
+ /**
45
+ * Sorts the specified list according to the order induced by the specified comparator.
46
+ * @param <T> the class of the objects in the list
47
+ * @param aList the list to be sorted.
48
+ * @param aComparator the comparator to determine the order of the list. A <tt>null</tt> value indicates that the elements' <i>natural ordering</i> should be used.
49
+ * @throws ClassCastException if the list contains elements that are not <i>mutually comparable</i> using the specified comparator.
50
+ * @throws UnsupportedOperationException if the specified list's list-iterator does not support the <tt>set</tt> operation.
51
+ */
52
+ sort(aList: unknown, aComparator: unknown): void;
53
+
54
+ /**
55
+ * Searches the specified list for the specified object using the binary search algorithm.
56
+ * @param <T> the class of the objects in the list
57
+ * @param aList the list to be searched.
58
+ * @param aKey the key to be searched for.
59
+ * @return the index of the search key, if it is contained in the list; 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 list: the index of the first element greater than the key, or <tt>aList.size()</tt> if all elements in the list 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.
60
+ * @throws ClassCastException if the list contains elements that are not <i>mutually comparable</i> (for example, strings and integers), or the search key is not mutually comparable with the elements of the list.
61
+ */
62
+ binarySearch(aList: unknown, aKey: unknown): number;
63
+
64
+ /**
65
+ * Searches the specified list for the specified object using the binary search algorithm.
66
+ * @param <T> the class of the objects in the list
67
+ * @param aList the list to be searched.
68
+ * @param aKey the key to be searched for.
69
+ * @param aComparator the comparator by which the list is ordered. A <tt>null</tt> value indicates that the elements' Comparable natural ordering should be used.
70
+ * @return the index of the search key, if it is contained in the list; 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 list: the index of the first element greater than the key, or <tt>aList.size()</tt> if all elements in the list 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.
71
+ * @throws ClassCastException if the list contains elements that are not <i>mutually comparable</i> using the specified comparator, or the search key is not mutually comparable with the elements of the list using this comparator.
72
+ */
73
+ binarySearch(aList: unknown, aKey: unknown, aComparator: unknown): number;
74
+
75
+ /**
76
+ * Reverses the order of the elements in the specified list.
77
+ * @param aList the list whose elements are to be reversed.
78
+ * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
79
+ */
80
+ reverse(aList: unknown): void;
81
+
82
+ /**
83
+ * Randomly permutes the specified list using a default source of randomness.
84
+ * @param aList the list to be shuffled.
85
+ * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
86
+ */
87
+ shuffle(aList: unknown): void;
88
+
89
+ /**
90
+ * Randomly permute the specified list using the specified source of randomness.
91
+ * @param aList the list to be shuffled.
92
+ * @param aRandom the source of randomness to use to shuffle the list.
93
+ * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
94
+ */
95
+ shuffle(aList: unknown, aRandom: unknown): void;
96
+
97
+ /**
98
+ * Swaps the elements at the specified positions in the specified list.
99
+ * @param aList The list in which to swap elements.
100
+ * @param anIndex the index of one element to be swapped.
101
+ * @param anAnotherIndex the index of the other element to be swapped.
102
+ * @throws IndexOutOfBoundsException if either <tt>anIndex</tt> or <tt>j</tt> is out of range (anIndex &lt; 0 || anIndex &gt;= aList.size() || anAnotherIndex &lt; 0 || anAnotherIndex &gt;= aList.size()).
103
+ */
104
+ swap(aList: unknown, anIndex: number, anAnotherIndex: number): void;
105
+
106
+ /**
107
+ * Replaces all of the elements of the specified list with the specified element.
108
+ * @param <T> the class of the objects in the list
109
+ * @param aList the list to be filled with the specified element.
110
+ * @param aValue The element with which to fill the specified list.
111
+ * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
112
+ */
113
+ fill(aList: unknown, aValue: unknown): void;
114
+
115
+ /**
116
+ * Copies all of the elements from one list into another.
117
+ * @param <T> the class of the objects in the list
118
+ * @param aDestination The destination list.
119
+ * @param aSource The source list.
120
+ * @throws IndexOutOfBoundsException if the destination list is too small to contain the entire source List.
121
+ * @throws UnsupportedOperationException if the destination list's list-iterator does not support the <tt>set</tt> operation.
122
+ */
123
+ copy(aDestination: unknown, aSource: unknown): void;
124
+
125
+ /**
126
+ * Returns the minimum element of the given collection, according to the <i>natural ordering</i> of its elements.
127
+ * @param <T> the class of the objects in the collection
128
+ * @param aCollection the collection whose minimum element is to be determined.
129
+ * @return the minimum element of the given collection, according to the <i>natural ordering</i> of its elements.
130
+ * @throws ClassCastException if the collection contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
131
+ * @throws NoSuchElementException if the collection is empty.
132
+ */
133
+ min(aCollection: unknown): unknown;
134
+
135
+ /**
136
+ * Returns the minimum element of the given collection, according to the order induced by the specified comparator.
137
+ * @param <T> the class of the objects in the collection
138
+ * @param aCollection the collection whose minimum element is to be determined.
139
+ * @param aComparator the comparator with which to determine the minimum element. A <tt>null</tt> value indicates that the elements' <i>natural ordering</i> should be used.
140
+ * @return the minimum element of the given collection, according to the specified comparator.
141
+ * @throws ClassCastException if the collection contains elements that are not <i>mutually comparable</i> using the specified comparator.
142
+ * @throws NoSuchElementException if the collection is empty.
143
+ */
144
+ min(aCollection: unknown, aComparator: unknown): unknown;
145
+
146
+ /**
147
+ * Returns the maximum element of the given collection, according to the
148
+ * <i>natural ordering</i> of its elements.
149
+ * @param <T> the class of the objects in the collection
150
+ * @param aCollection the collection whose maximum element is to be determined.
151
+ * @return the maximum element of the given collection, according to the <i>natural ordering</i> of its elements.
152
+ * @throws ClassCastException if the collection contains elements that are not <i>mutually comparable</i> (for example, strings and integers).
153
+ * @throws NoSuchElementException if the collection is empty.
154
+ */
155
+ max(aCollection: unknown): unknown;
156
+
157
+ /**
158
+ * Returns the maximum element of the given collection, according to the
159
+ * order induced by the specified comparator.
160
+ * @param <T> the class of the objects in the collection
161
+ * @param aCollection the collection whose maximum element is to be determined.
162
+ * @param aComparator the comparator with which to determine the maximum element. A <tt>null</tt> value indicates that the elements' <i>natural ordering</i> should be used.
163
+ * @return the maximum element of the given collection, according to the specified comparator.
164
+ * @throws ClassCastException if the collection contains elements that are not <i>mutually comparable</i> using the specified comparator.
165
+ * @throws NoSuchElementException if the collection is empty.
166
+ */
167
+ max(aCollection: unknown, aComparator: unknown): unknown;
168
+
169
+ /**
170
+ * Rotates the elements in the specified list by the specified distance.
171
+ * @param aList the list to be rotated.
172
+ * @param aDistance the distance to rotate the list. There are no constraints on this value; it may be zero, negative, or greater than <tt>aList.size()</tt>.
173
+ * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
174
+ */
175
+ rotate(aList: unknown, aDistance: number): void;
176
+
177
+ /**
178
+ * Replaces all occurrences of one specified value in a list with another.
179
+ * @param <T> the class of the objects in the list
180
+ * @param aList the list in which replacement is to occur.
181
+ * @param anOldValue the old value to be replaced.
182
+ * @param aNewValue the new value with which <tt>anOldValue</tt> is to be replaced.
183
+ * @return <tt>true</tt> if <tt>aList</tt> contained one or more elements <tt>e</tt> such that <tt>(anOldValue==null ? e==null : anOldValue.equals(e))</tt>.
184
+ * @throws UnsupportedOperationException if the specified list or its list-iterator does not support the <tt>set</tt> operation.
185
+ */
186
+ replaceAll(aList: unknown, anOldValue: unknown, aNewValue: unknown): boolean;
187
+
188
+ /**
189
+ * Returns the starting position of the first occurrence of the specified
190
+ * target list within the specified source list, or -1 if there is no such occurrence.
191
+ * @param aSource the list in which to search for the first occurrence of <tt>target</tt>.
192
+ * @param aTarget the list to search for as a subList of <tt>aSource</tt>.
193
+ * @return the starting position of the first occurrence of the specified target list within the specified source list, or -1 if there is no such occurrence.
194
+ */
195
+ indexOfSubList(aSource: unknown, aTarget: unknown): number;
196
+
197
+ /**
198
+ * Returns the starting position of the last occurrence of the specified
199
+ * target list within the specified source list, or -1 if there is no such occurrence.
200
+ * @param aSource the list in which to search for the last occurrence of <tt>target</tt>.
201
+ * @param aTarget the list to search for as a subList of <tt>aSource</tt>.
202
+ * @return the starting position of the last occurrence of the specified target list within the specified source list, or -1 if there is no such occurrence.
203
+ */
204
+ lastIndexOfSubList(aSource: unknown, aTarget: unknown): number;
205
+
206
+ /**
207
+ * Returns an unmodifiable view of the specified collection.
208
+ * @param <T> the class of the objects in the collection
209
+ * @param aCollection the collection for which an unmodifiable view is to be returned.
210
+ * @return an unmodifiable view of the specified collection.
211
+ */
212
+ unmodifiableCollection(aCollection: unknown): unknown;
213
+
214
+ /**
215
+ * Returns an unmodifiable view of the specified set.
216
+ * @param <T> the class of the objects in the set
217
+ * @param aSet the set for which an unmodifiable view is to be returned.
218
+ * @return an unmodifiable view of the specified set.
219
+ */
220
+ unmodifiableSet(aSet: unknown): unknown;
221
+
222
+ /**
223
+ * Returns an unmodifiable view of the specified sorted set.
224
+ * @param <T> the class of the objects in the set
225
+ * @param aSet the sorted set for which an unmodifiable view is to be returned.
226
+ * @return an unmodifiable view of the specified sorted set.
227
+ */
228
+ unmodifiableSortedSet(aSet: unknown): unknown;
229
+
230
+ /**
231
+ * Returns an unmodifiable view of the specified list.
232
+ * @param <T> the class of the objects in the list
233
+ * @param aList the list for which an unmodifiable view is to be returned.
234
+ * @return an unmodifiable view of the specified list.
235
+ */
236
+ unmodifiableList(aList: unknown): unknown;
237
+
238
+ /**
239
+ * Returns an unmodifiable view of the specified map.
240
+ * @param <K> the class of the map keys
241
+ * @param <V> the class of the map values
242
+ * @param aMap the map for which an unmodifiable view is to be returned.
243
+ * @return an unmodifiable view of the specified map.
244
+ */
245
+ unmodifiableMap(aMap: unknown): unknown;
246
+
247
+ /**
248
+ * Returns an unmodifiable view of the specified sorted map.
249
+ * @param <K> the class of the map keys
250
+ * @param <V> the class of the map values
251
+ * @param aMap the sorted map for which an unmodifiable view is to be returned.
252
+ * @return an unmodifiable view of the specified sorted map.
253
+ */
254
+ unmodifiableSortedMap(aMap: unknown): unknown;
255
+
256
+ /**
257
+ * Returns a synchronized (thread-safe) collection backed by the specified collection.
258
+ * @param <T> the class of the objects in the collection
259
+ * @param aCollection the collection to be "wrapped" in a synchronized collection.
260
+ * @return a synchronized view of the specified collection.
261
+ */
262
+ synchronizedCollection(aCollection: unknown): unknown;
263
+
264
+ /**
265
+ * Returns a synchronized (thread-safe) set backed by the specified set.
266
+ * @param <T> the class of the objects in the set
267
+ * @param aSet the set to be "wrapped" in a synchronized set.
268
+ * @return a synchronized view of the specified set.
269
+ */
270
+ synchronizedSet(aSet: unknown): unknown;
271
+
272
+ /**
273
+ * Returns a synchronized (thread-safe) sorted set backed by the specified sorted set.
274
+ * @param <T> the class of the objects in the set
275
+ * @param aSet the sorted set to be "wrapped" in a synchronized sorted set.
276
+ * @return a synchronized view of the specified sorted set.
277
+ */
278
+ synchronizedSortedSet(aSet: unknown): unknown;
279
+
280
+ /**
281
+ * Returns a synchronized (thread-safe) list backed by the specified list.
282
+ * @param <T> the class of the objects in the list
283
+ * @param aList the list to be "wrapped" in a synchronized list.
284
+ * @return a synchronized view of the specified list.
285
+ */
286
+ synchronizedList(aList: unknown): unknown;
287
+
288
+ /**
289
+ * Returns a synchronized (thread-safe) map backed by the specified map.
290
+ * @param <K> the class of the map keys
291
+ * @param <V> the class of the map values
292
+ * @param aMap the map to be "wrapped" in a synchronized map.
293
+ * @return a synchronized view of the specified map.
294
+ */
295
+ synchronizedMap(aMap: unknown): unknown;
296
+
297
+ /**
298
+ * Returns a synchronized (thread-safe) sorted map backed by the specified sorted map.
299
+ * @param <K> the class of the map keys
300
+ * @param <V> the class of the map values
301
+ * @param aMap the sorted map to be "wrapped" in a synchronized sorted map.
302
+ * @return a synchronized view of the specified sorted map.
303
+ */
304
+ synchronizedSortedMap(aMap: unknown): unknown;
305
+
306
+ /**
307
+ * Returns a dynamically typesafe view of the specified collection.
308
+ * @param <E> the class of the objects in the collection
309
+ * @param aCollection the collection for which a dynamically typesafe view is to be returned
310
+ * @param aType the type of element that <tt>aCollection</tt> is permitted to hold
311
+ * @return a dynamically typesafe view of the specified collection
312
+ */
313
+ checkedCollection(aCollection: unknown, aType: unknown): unknown;
314
+
315
+ /**
316
+ * Returns a dynamically typesafe view of the specified set.
317
+ * @param <E> the class of the objects in the set
318
+ * @param aSet the set for which a dynamically typesafe view is to be returned
319
+ * @param aType the type of element that <tt>aSet</tt> is permitted to hold
320
+ * @return a dynamically typesafe view of the specified set
321
+ */
322
+ checkedSet(aSet: unknown, aType: unknown): unknown;
323
+
324
+ /**
325
+ * Returns a dynamically typesafe view of the specified sorted set.
326
+ * @param <E> the class of the objects in the set
327
+ * @param aSet the sorted set for which a dynamically typesafe view is to be returned
328
+ * @param aType the type of element that <tt>aSet</tt> is permitted to hold
329
+ * @return a dynamically typesafe view of the specified sorted set
330
+ */
331
+ checkedSortedSet(aSet: unknown, aType: unknown): unknown;
332
+
333
+ /**
334
+ * Returns a dynamically typesafe view of the specified list.
335
+ * @param <E> the class of the objects in the list
336
+ * @param aList the list for which a dynamically typesafe view is to be returned
337
+ * @param aType the type of element that <tt>aList</tt> is permitted to hold
338
+ * @return a dynamically typesafe view of the specified list
339
+ */
340
+ checkedList(aList: unknown, aType: unknown): unknown;
341
+
342
+ /**
343
+ * Returns a dynamically typesafe view of the specified map.
344
+ * @param <K> the class of the map keys
345
+ * @param <V> the class of the map values
346
+ * @param aMap the map for which a dynamically typesafe view is to be returned
347
+ * @param aKeyType the type of key that <tt>aMap</tt> is permitted to hold
348
+ * @param aValueType the type of value that <tt>aMap</tt> is permitted to hold
349
+ * @return a dynamically typesafe view of the specified map
350
+ */
351
+ checkedMap(aMap: unknown, aKeyType: unknown, aValueType: unknown): unknown;
352
+
353
+ /**
354
+ * Returns a dynamically typesafe view of the specified sorted map.
355
+ * @param <K> the class of the map keys
356
+ * @param <V> the class of the map values
357
+ * @param aMap the map for which a dynamically typesafe view is to be returned
358
+ * @param aKeyType the type of key that <tt>aMap</tt> is permitted to hold
359
+ * @param aValueType the type of value that <tt>aMap</tt> is permitted to hold
360
+ * @return a dynamically typesafe view of the specified map
361
+ */
362
+ checkedSortedMap(
363
+ aMap: unknown,
364
+ aKeyType: unknown,
365
+ aValueType: unknown
366
+ ): unknown;
367
+
368
+ /**
369
+ * Returns the empty set (immutable).
370
+ * @param <T> the class of the objects in the set
371
+ * @return the empty set
372
+ */
373
+ emptySet(): unknown;
374
+
375
+ /**
376
+ * Returns the empty list (immutable).
377
+ * @param <T> the class of the objects in the list
378
+ * @return the empty list
379
+ */
380
+ emptyList(): unknown;
381
+
382
+ /**
383
+ * Returns the empty map (immutable).
384
+ * @param <K> the class of the map keys
385
+ * @param <V> the class of the map values
386
+ * @return the empty map
387
+ */
388
+ emptyMap(): unknown;
389
+
390
+ /**
391
+ * Returns an immutable set containing only the specified object.
392
+ * @param <T> the class of the objects in the set
393
+ * @param aValue the sole object to be stored in the returned set.
394
+ * @return an immutable set containing only the specified object.
395
+ */
396
+ singleton(aValue: unknown): unknown;
397
+
398
+ /**
399
+ * Returns an immutable list containing only the specified object.
400
+ * @param <T> the class of the objects in the list
401
+ * @param aValue the sole object to be stored in the returned list.
402
+ * @return an immutable list containing only the specified object.
403
+ */
404
+ singletonList(aValue: unknown): unknown;
405
+
406
+ /**
407
+ * Returns an immutable map, mapping only the specified key to the specified value.
408
+ * @param <K> the class of the map keys
409
+ * @param <V> the class of the map values
410
+ * @param key the sole key to be stored in the returned map.
411
+ * @param aValue the value to which the returned map maps <tt>key</tt>.
412
+ * @return an immutable map containing only the specified key-value mapping.
413
+ */
414
+ singletonMap(key: unknown, aValue: unknown): unknown;
415
+
416
+ /**
417
+ * Returns an immutable list consisting of <tt>n</tt> copies of the specified object.
418
+ * @param <T> the class of the objects in the list
419
+ * @param aCount the number of elements in the returned list.
420
+ * @param aValue the element to appear repeatedly in the returned list.
421
+ * @return an immutable list consisting of <tt>aCount</tt> copies of the specified object.
422
+ * @throws IllegalArgumentException if <tt>aCount &lt; 0</tt>.
423
+ */
424
+ nCopies(aCount: number, aValue: unknown): unknown;
425
+
426
+ /**
427
+ * Returns a comparator that imposes the reverse of the <i>natural ordering</i> on a collection of objects that implement
428
+ * the <tt>Comparable</tt> interface.
429
+ * @param <T> the class of the objects compared by the comparator
430
+ * @return a comparator that imposes the reverse of the <i>natural ordering</i> on a collection of objects that implement the <tt>Comparable</tt> interface.
431
+ */
432
+ reverseOrder(): unknown;
433
+
434
+ /**
435
+ * Returns a comparator that imposes the reverse ordering of the specified comparator.
436
+ * @param <T> the class of the objects compared by the comparator
437
+ * @param aComparator the Comparator
438
+ * @return a comparator that imposes the reverse ordering of the specified comparator.
439
+ */
440
+ reverseOrder(aComparator: unknown): unknown;
441
+
442
+ /**
443
+ * Returns an enumeration over the specified collection.
444
+ * @param <T> the class of the objects in the collection
445
+ * @param aCollection the collection for which an enumeration is to be returned.
446
+ * @return an enumeration over the specified collection.
447
+ */
448
+ enumeration(aCollection: unknown): unknown;
449
+
450
+ /**
451
+ * Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration.
452
+ * @param <T> the class of the objects in the enumeration
453
+ * @param anEnumeration enumeration providing elements for the returned array list
454
+ * @return an array list containing the elements returned by the specified enumeration.
455
+ */
456
+ list(anEnumeration: unknown): unknown;
457
+
458
+ /**
459
+ * Returns the number of elements in the specified collection equal to the specified object.
460
+ * @param aCollection the collection in which to determine the frequency of <tt>aValue</tt>
461
+ * @param aValue the object whose frequency is to be determined
462
+ * @return the number of elements in {@code aCollection} equal to {@code aValue}
463
+ * @throws NullPointerException if <tt>aCollection</tt> is null
464
+ */
465
+ frequency(aCollection: unknown, aValue: unknown): number;
466
+
467
+ /**
468
+ * Returns <tt>true</tt> if the two specified collections have no elements in common.
469
+ * @param aCollection a collection
470
+ * @param anAnotherCollection a collection
471
+ * @return {@code true} if the two specified collections have no elements in common.
472
+ * @throws NullPointerException if either collection is null
473
+ */
474
+ disjoint(aCollection: unknown, anAnotherCollection: unknown): boolean;
475
+
476
+ /**
477
+ * Adds all of the specified elements to the specified collection.
478
+ * @param <T> the class of the elements to add and of the collection
479
+ * @param aCollection the collection into which <tt>elements</tt> are to be inserted
480
+ * @param aValues the elements to insert into <tt>aCollection</tt>
481
+ * @return <tt>true</tt> if the collection changed as a result of the call
482
+ * @throws UnsupportedOperationException if <tt>aCollection</tt> does not support the <tt>add</tt> operation
483
+ * @throws NullPointerException if <tt>aValues</tt> contains one or more null values and <tt>aCollection</tt> does not permit null elements, or if <tt>aCollection</tt> or <tt>aValues</tt> are <tt>null</tt>
484
+ * @throws IllegalArgumentException if some property of a value in <tt>aValues</tt> prevents it from being added to <tt>aCollection</tt>
485
+ */
486
+ addAll(aCollection: unknown, aValues: unknown): boolean;
487
+
488
+ /**
489
+ * Returns a set backed by the specified map.
490
+ * @param <E> the class of the map keys and of the objects in the returned set
491
+ * @param aMap the backing map
492
+ * @return the set backed by the map
493
+ * @throws IllegalArgumentException if <tt>aMap</tt> is not empty
494
+ */
495
+ newSetFromMap(aMap: unknown): unknown;
496
+
497
+ /**
498
+ * Returns a view of a <code>Deque</code> as a Last-in-first-out (Lifo) <code>Queue</code>.
499
+ * @param <T> the class of the objects in the deque
500
+ * @param aDeque the deque
501
+ * @return the queue
502
+ */
503
+ asLifoQueue(aDeque: unknown): unknown;
504
+
505
+ /**
506
+ * Returns an iterator that has no elements.
507
+ * @param <T> type of elements, if there were any, in the iterator
508
+ * @return an empty iterator
509
+ * @since Sitevision 4.0
510
+ * @since Java 1.7
511
+ */
512
+ emptyIterator(): unknown;
513
+
514
+ /**
515
+ * Returns a list iterator that has no elements.
516
+ * @param <T> type of elements, if there were any, in the iterator
517
+ * @return an empty list iterator
518
+ * @since Sitevision 4.0
519
+ * @since Java 1.7
520
+ */
521
+ emptyListIterator(): unknown;
522
+
523
+ /**
524
+ * Returns an enumeration that has no elements.
525
+ * @param <T> the class of the objects in the enumeration
526
+ * @return an empty enumeration
527
+ * @since Sitevision 4.0
528
+ * @since Java 1.7
529
+ */
530
+ emptyEnumeration(): unknown;
531
+
532
+ /**
533
+ * Returns an unmodifiable view of the specified navigable set.
534
+ * @param <T> the class of the objects in the set
535
+ * @param s the navigable set for which an unmodifiable view is to be returned
536
+ * @return an unmodifiable view of the specified navigable set
537
+ * @since Sitevision 4.0
538
+ * @since Java 1.8
539
+ */
540
+ unmodifiableNavigableSet(s: unknown): unknown;
541
+
542
+ /**
543
+ * Returns an unmodifiable view of the specified navigable map.
544
+ * @param <K> the class of the map keys
545
+ * @param <V> the class of the map values
546
+ * @param m the navigable map for which an unmodifiable view is to be returned
547
+ * @return an unmodifiable view of the specified navigable map
548
+ * @since Sitevision 4.0
549
+ * @since Java 1.8
550
+ */
551
+ unmodifiableNavigableMap(m: unknown): unknown;
552
+
553
+ /**
554
+ * Returns a synchronized (thread-safe) navigable set backed by the
555
+ * specified navigable set.
556
+ * @param <T> the class of the objects in the set
557
+ * @param s the navigable set to be "wrapped" in a synchronized navigableset
558
+ * @return a synchronized view of the specified navigable set
559
+ * @since Sitevision 4.0
560
+ * @since Java 1.8
561
+ */
562
+ synchronizedNavigableSet(s: unknown): unknown;
563
+
564
+ /**
565
+ * Returns a synchronized (thread-safe) navigable map backed by the
566
+ * specified navigable map.
567
+ * @param <K> the class of the map keys
568
+ * @param <V> the class of the map values
569
+ * @param m the navigable map to be "wrapped" in a synchronized navigable map
570
+ * @return a synchronized view of the specified navigable map.
571
+ * @since Sitevision 4.0
572
+ * @since Java 1.8
573
+ */
574
+ synchronizedNavigableMap(m: unknown): unknown;
575
+
576
+ /**
577
+ * Returns a dynamically typesafe view of the specified queue.
578
+ * @param <E> the class of the objects in the queue
579
+ * @param queue the queue for which a dynamically typesafe view is to be returned
580
+ * @param type the type of element that {@code queue} is permitted to hold
581
+ * @return a dynamically typesafe view of the specified queue
582
+ * @since Sitevision 4.0
583
+ * @since Java 1.8
584
+ */
585
+ checkedQueue(queue: unknown, type: unknown): unknown;
586
+
587
+ /**
588
+ * Returns a dynamically typesafe view of the specified navigable set.
589
+ * @param <E> the class of the objects in the set
590
+ * @param s the navigable set for which a dynamically typesafe view is to be returned
591
+ * @param type the type of element that {@code s} is permitted to hold
592
+ * @return a dynamically typesafe view of the specified navigable set
593
+ * @since Sitevision 4.0
594
+ * @since Java 1.8
595
+ */
596
+ checkedNavigableSet(s: unknown, type: unknown): unknown;
597
+
598
+ /**
599
+ * Returns a dynamically typesafe view of the specified navigable map.
600
+ * @param <K> type of map keys
601
+ * @param <V> type of map values
602
+ * @param m the map for which a dynamically typesafe view is to be returned
603
+ * @param keyType the type of key that {@code m} is permitted to hold
604
+ * @param valueType the type of value that {@code m} is permitted to hold
605
+ * @return a dynamically typesafe view of the specified map
606
+ * @since Sitevision 4.0
607
+ * @since Java 1.8
608
+ */
609
+ checkedNavigableMap(
610
+ m: unknown,
611
+ keyType: unknown,
612
+ valueType: unknown
613
+ ): unknown;
614
+
615
+ /**
616
+ * Returns an empty sorted set (immutable).
617
+ * @param <E> type of elements, if there were any, in the set
618
+ * @return the empty sorted set
619
+ * @since Sitevision 4.0
620
+ * @since Java 1.8
621
+ */
622
+ emptySortedSet(): unknown;
623
+
624
+ /**
625
+ * Returns an empty navigable set (immutable).
626
+ * @param <E> type of elements, if there were any, in the set
627
+ * @return the empty navigable set
628
+ * @since Sitevision 4.0
629
+ * @since Java 1.8
630
+ */
631
+ emptyNavigableSet(): unknown;
632
+
633
+ /**
634
+ * Returns an empty sorted map (immutable).
635
+ * @param <K> the class of the map keys
636
+ * @param <V> the class of the map values
637
+ * @return an empty sorted map
638
+ * @since Sitevision 4.0
639
+ * @since Java 1.8
640
+ */
641
+ emptySortedMap(): unknown;
642
+
643
+ /**
644
+ * Returns an empty navigable map (immutable).
645
+ * @param <K> the class of the map keys
646
+ * @param <V> the class of the map values
647
+ * @return an empty navigable map
648
+ * @since Sitevision 4.0
649
+ * @since Java 1.8
650
+ */
651
+ emptyNavigableMap(): unknown;
719
652
  }
720
653
 
721
- export default collectionsInstance;
654
+ declare namespace CollectionsInstance {}
655
+
656
+ declare var collectionsInstance: CollectionsInstance;
657
+
658
+ export = collectionsInstance;