@procedures/collections 0.46.0 → 0.47.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 (233) hide show
  1. package/CHANGELOG.md +42 -8
  2. package/README.md +30 -0
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/index.d.ts +1 -58
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +3 -94
  7. package/dist/index.js.map +1 -1
  8. package/dist/storage/index.d.ts +2 -2
  9. package/dist/storage/index.d.ts.map +1 -1
  10. package/dist/storage/index.js +1 -1
  11. package/dist/storage/index.js.map +1 -1
  12. package/dist/storage/memory.d.ts +1 -1
  13. package/dist/storage/memory.d.ts.map +1 -1
  14. package/dist/storage/memory.js +1 -1
  15. package/dist/storage/memory.js.map +1 -1
  16. package/dist/testing/index.d.ts +1 -1
  17. package/dist/testing/index.d.ts.map +1 -1
  18. package/dist/testing/index.js +1 -1
  19. package/dist/testing/index.js.map +1 -1
  20. package/dist/testing/storage-contract.js +1 -1
  21. package/dist/testing/storage-contract.js.map +1 -1
  22. package/dist/undo/index.d.ts +1 -1
  23. package/dist/undo/index.js +1 -1
  24. package/dist/undo/undo-log.d.ts +1 -1
  25. package/dist/undo/undo-log.js +1 -1
  26. package/package.json +6 -6
  27. package/src/index.ts +338 -213
  28. package/src/storage/index.ts +2 -2
  29. package/src/storage/memory.ts +1 -1
  30. package/src/testing/index.ts +1 -1
  31. package/src/testing/storage-contract.ts +1 -1
  32. package/src/undo/index.ts +1 -1
  33. package/src/undo/undo-log.ts +1 -1
  34. package/dist/async/async-queue.d.ts +0 -170
  35. package/dist/async/async-queue.d.ts.map +0 -1
  36. package/dist/async/async-queue.js +0 -404
  37. package/dist/async/async-queue.js.map +0 -1
  38. package/dist/async/channels.d.ts +0 -211
  39. package/dist/async/channels.d.ts.map +0 -1
  40. package/dist/async/channels.js +0 -393
  41. package/dist/async/channels.js.map +0 -1
  42. package/dist/async/settled.d.ts +0 -23
  43. package/dist/async/settled.d.ts.map +0 -1
  44. package/dist/async/settled.js +0 -32
  45. package/dist/async/settled.js.map +0 -1
  46. package/dist/behaviors/bounded.d.ts +0 -79
  47. package/dist/behaviors/bounded.d.ts.map +0 -1
  48. package/dist/behaviors/bounded.js +0 -393
  49. package/dist/behaviors/bounded.js.map +0 -1
  50. package/dist/behaviors/composite.d.ts +0 -17
  51. package/dist/behaviors/composite.d.ts.map +0 -1
  52. package/dist/behaviors/composite.js +0 -93
  53. package/dist/behaviors/composite.js.map +0 -1
  54. package/dist/behaviors/evented.d.ts +0 -154
  55. package/dist/behaviors/evented.d.ts.map +0 -1
  56. package/dist/behaviors/evented.js +0 -299
  57. package/dist/behaviors/evented.js.map +0 -1
  58. package/dist/behaviors/lru.d.ts +0 -84
  59. package/dist/behaviors/lru.d.ts.map +0 -1
  60. package/dist/behaviors/lru.js +0 -376
  61. package/dist/behaviors/lru.js.map +0 -1
  62. package/dist/behaviors/readonly.d.ts +0 -73
  63. package/dist/behaviors/readonly.d.ts.map +0 -1
  64. package/dist/behaviors/readonly.js +0 -189
  65. package/dist/behaviors/readonly.js.map +0 -1
  66. package/dist/behaviors/safe.d.ts +0 -163
  67. package/dist/behaviors/safe.d.ts.map +0 -1
  68. package/dist/behaviors/safe.js +0 -176
  69. package/dist/behaviors/safe.js.map +0 -1
  70. package/dist/behaviors/synchronized.d.ts +0 -88
  71. package/dist/behaviors/synchronized.d.ts.map +0 -1
  72. package/dist/behaviors/synchronized.js +0 -285
  73. package/dist/behaviors/synchronized.js.map +0 -1
  74. package/dist/behaviors/ttl.d.ts +0 -118
  75. package/dist/behaviors/ttl.d.ts.map +0 -1
  76. package/dist/behaviors/ttl.js +0 -354
  77. package/dist/behaviors/ttl.js.map +0 -1
  78. package/dist/contracts/model.d.ts +0 -29
  79. package/dist/contracts/model.d.ts.map +0 -1
  80. package/dist/contracts/model.js +0 -26
  81. package/dist/contracts/model.js.map +0 -1
  82. package/dist/core/effects.d.ts +0 -176
  83. package/dist/core/effects.d.ts.map +0 -1
  84. package/dist/core/effects.js +0 -180
  85. package/dist/core/effects.js.map +0 -1
  86. package/dist/core/events.d.ts +0 -192
  87. package/dist/core/events.d.ts.map +0 -1
  88. package/dist/core/events.js +0 -291
  89. package/dist/core/events.js.map +0 -1
  90. package/dist/core/middleware.d.ts +0 -231
  91. package/dist/core/middleware.d.ts.map +0 -1
  92. package/dist/core/middleware.js +0 -161
  93. package/dist/core/middleware.js.map +0 -1
  94. package/dist/core/policies.d.ts +0 -220
  95. package/dist/core/policies.d.ts.map +0 -1
  96. package/dist/core/policies.js +0 -48
  97. package/dist/core/policies.js.map +0 -1
  98. package/dist/core/traits.d.ts +0 -142
  99. package/dist/core/traits.d.ts.map +0 -1
  100. package/dist/core/traits.js +0 -8
  101. package/dist/core/traits.js.map +0 -1
  102. package/dist/fx/collectors.d.ts +0 -193
  103. package/dist/fx/collectors.d.ts.map +0 -1
  104. package/dist/fx/collectors.js +0 -375
  105. package/dist/fx/collectors.js.map +0 -1
  106. package/dist/fx/iter.d.ts +0 -166
  107. package/dist/fx/iter.d.ts.map +0 -1
  108. package/dist/fx/iter.js +0 -421
  109. package/dist/fx/iter.js.map +0 -1
  110. package/dist/impl/array-deque.d.ts +0 -112
  111. package/dist/impl/array-deque.d.ts.map +0 -1
  112. package/dist/impl/array-deque.js +0 -380
  113. package/dist/impl/array-deque.js.map +0 -1
  114. package/dist/impl/array-list.d.ts +0 -101
  115. package/dist/impl/array-list.d.ts.map +0 -1
  116. package/dist/impl/array-list.js +0 -387
  117. package/dist/impl/array-list.js.map +0 -1
  118. package/dist/impl/hash-map.d.ts +0 -149
  119. package/dist/impl/hash-map.d.ts.map +0 -1
  120. package/dist/impl/hash-map.js +0 -473
  121. package/dist/impl/hash-map.js.map +0 -1
  122. package/dist/impl/hash-set.d.ts +0 -125
  123. package/dist/impl/hash-set.d.ts.map +0 -1
  124. package/dist/impl/hash-set.js +0 -264
  125. package/dist/impl/hash-set.js.map +0 -1
  126. package/dist/impl/linked-hash-map.d.ts +0 -141
  127. package/dist/impl/linked-hash-map.d.ts.map +0 -1
  128. package/dist/impl/linked-hash-map.js +0 -442
  129. package/dist/impl/linked-hash-map.js.map +0 -1
  130. package/dist/impl/linked-list.d.ts +0 -109
  131. package/dist/impl/linked-list.d.ts.map +0 -1
  132. package/dist/impl/linked-list.js +0 -494
  133. package/dist/impl/linked-list.js.map +0 -1
  134. package/dist/impl/priority-queue.d.ts +0 -139
  135. package/dist/impl/priority-queue.d.ts.map +0 -1
  136. package/dist/impl/priority-queue.js +0 -343
  137. package/dist/impl/priority-queue.js.map +0 -1
  138. package/dist/impl/tree-map.d.ts +0 -153
  139. package/dist/impl/tree-map.d.ts.map +0 -1
  140. package/dist/impl/tree-map.js +0 -788
  141. package/dist/impl/tree-map.js.map +0 -1
  142. package/dist/impl/tree-set.d.ts +0 -112
  143. package/dist/impl/tree-set.d.ts.map +0 -1
  144. package/dist/impl/tree-set.js +0 -374
  145. package/dist/impl/tree-set.js.map +0 -1
  146. package/dist/interfaces/collection.d.ts +0 -119
  147. package/dist/interfaces/collection.d.ts.map +0 -1
  148. package/dist/interfaces/collection.js +0 -8
  149. package/dist/interfaces/collection.js.map +0 -1
  150. package/dist/interfaces/list.d.ts +0 -247
  151. package/dist/interfaces/list.d.ts.map +0 -1
  152. package/dist/interfaces/list.js +0 -8
  153. package/dist/interfaces/list.js.map +0 -1
  154. package/dist/interfaces/map.d.ts +0 -344
  155. package/dist/interfaces/map.d.ts.map +0 -1
  156. package/dist/interfaces/map.js +0 -8
  157. package/dist/interfaces/map.js.map +0 -1
  158. package/dist/interfaces/queue.d.ts +0 -304
  159. package/dist/interfaces/queue.d.ts.map +0 -1
  160. package/dist/interfaces/queue.js +0 -8
  161. package/dist/interfaces/queue.js.map +0 -1
  162. package/dist/interfaces/set.d.ts +0 -137
  163. package/dist/interfaces/set.d.ts.map +0 -1
  164. package/dist/interfaces/set.js +0 -8
  165. package/dist/interfaces/set.js.map +0 -1
  166. package/dist/order/index.d.ts +0 -7
  167. package/dist/order/index.d.ts.map +0 -1
  168. package/dist/order/index.js +0 -7
  169. package/dist/order/index.js.map +0 -1
  170. package/dist/order/rank.d.ts +0 -100
  171. package/dist/order/rank.d.ts.map +0 -1
  172. package/dist/order/rank.js +0 -286
  173. package/dist/order/rank.js.map +0 -1
  174. package/dist/storage/listeners.d.ts +0 -39
  175. package/dist/storage/listeners.d.ts.map +0 -1
  176. package/dist/storage/listeners.js +0 -65
  177. package/dist/storage/listeners.js.map +0 -1
  178. package/dist/testing/check.d.ts +0 -25
  179. package/dist/testing/check.d.ts.map +0 -1
  180. package/dist/testing/check.js +0 -85
  181. package/dist/testing/check.js.map +0 -1
  182. package/dist/utils/defaults.d.ts +0 -135
  183. package/dist/utils/defaults.d.ts.map +0 -1
  184. package/dist/utils/defaults.js +0 -322
  185. package/dist/utils/defaults.js.map +0 -1
  186. package/dist/utils/factories.d.ts +0 -144
  187. package/dist/utils/factories.d.ts.map +0 -1
  188. package/dist/utils/factories.js +0 -293
  189. package/dist/utils/factories.js.map +0 -1
  190. package/dist/utils/helpers.d.ts +0 -137
  191. package/dist/utils/helpers.d.ts.map +0 -1
  192. package/dist/utils/helpers.js +0 -221
  193. package/dist/utils/helpers.js.map +0 -1
  194. package/src/async/async-queue.ts +0 -481
  195. package/src/async/channels.ts +0 -450
  196. package/src/async/settled.ts +0 -41
  197. package/src/behaviors/bounded.ts +0 -485
  198. package/src/behaviors/composite.ts +0 -99
  199. package/src/behaviors/evented.ts +0 -464
  200. package/src/behaviors/lru.ts +0 -447
  201. package/src/behaviors/readonly.ts +0 -236
  202. package/src/behaviors/safe.ts +0 -372
  203. package/src/behaviors/synchronized.ts +0 -316
  204. package/src/behaviors/ttl.ts +0 -462
  205. package/src/contracts/model.ts +0 -44
  206. package/src/core/effects.ts +0 -323
  207. package/src/core/events.ts +0 -356
  208. package/src/core/middleware.ts +0 -415
  209. package/src/core/policies.ts +0 -316
  210. package/src/core/traits.ts +0 -164
  211. package/src/fx/collectors.ts +0 -500
  212. package/src/fx/iter.ts +0 -536
  213. package/src/impl/array-deque.ts +0 -463
  214. package/src/impl/array-list.ts +0 -490
  215. package/src/impl/hash-map.ts +0 -623
  216. package/src/impl/hash-set.ts +0 -342
  217. package/src/impl/linked-hash-map.ts +0 -572
  218. package/src/impl/linked-list.ts +0 -606
  219. package/src/impl/priority-queue.ts +0 -448
  220. package/src/impl/tree-map.ts +0 -912
  221. package/src/impl/tree-set.ts +0 -469
  222. package/src/interfaces/collection.ts +0 -141
  223. package/src/interfaces/list.ts +0 -281
  224. package/src/interfaces/map.ts +0 -405
  225. package/src/interfaces/queue.ts +0 -353
  226. package/src/interfaces/set.ts +0 -158
  227. package/src/order/index.ts +0 -6
  228. package/src/order/rank.ts +0 -271
  229. package/src/storage/listeners.ts +0 -72
  230. package/src/testing/check.ts +0 -81
  231. package/src/utils/defaults.ts +0 -345
  232. package/src/utils/factories.ts +0 -357
  233. package/src/utils/helpers.ts +0 -248
@@ -1 +0,0 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../src/interfaces/collection.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,CAAE,SAAQ,QAAQ,CAAC,CAAC,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAE9B;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;IAEzC;;;OAGG;IACH,OAAO,IAAI,CAAC,EAAE,CAAC;IAEf;;;;OAIG;IACH,OAAO,CAAC,MAAM,EA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
2
- * Base collection interfaces that mirror Java Collections Framework.
3
- *
4
- * These form the root of the collection hierarchy and define the
5
- * fundamental operations common to all collections.
6
- */
7
- export {};
8
- //# sourceMappingURL=collection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/interfaces/collection.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,247 +0,0 @@
1
- /**
2
- * List interfaces that mirror Java's List interface.
3
- *
4
- * Lists are ordered collections that allow duplicate elements
5
- * and provide positional (indexed) access to elements.
6
- */
7
- import type { Collection, ReadonlyCollection } from "./collection.js";
8
- import type { Compare } from "../core/traits.js";
9
- /**
10
- * ReadonlyList<T> - Readonly ordered collection with indexed access.
11
- *
12
- * Mirrors java.util.List but without mutation operations.
13
- * Elements maintain their insertion order and can be accessed by index.
14
- */
15
- export interface ReadonlyList<T> extends ReadonlyCollection<T> {
16
- /**
17
- * Returns the element at the specified position.
18
- *
19
- * @param index The index of the element to return (0-based)
20
- * @returns The element at the specified position
21
- * @throws RangeError if index is out of bounds
22
- */
23
- get(index: number): T;
24
- /**
25
- * Returns the index of the first occurrence of the specified element,
26
- * or -1 if not found.
27
- *
28
- * @param element The element to search for
29
- * @param fromIndex Optional starting index for the search
30
- */
31
- indexOf(element: T, fromIndex?: number): number;
32
- /**
33
- * Returns the index of the last occurrence of the specified element,
34
- * or -1 if not found.
35
- *
36
- * @param element The element to search for
37
- * @param fromIndex Optional starting index for backwards search
38
- */
39
- lastIndexOf(element: T, fromIndex?: number): number;
40
- /**
41
- * Returns a view of the portion of this list between fromIndex (inclusive)
42
- * and toIndex (exclusive).
43
- *
44
- * Changes to the sublist are reflected in the original list.
45
- *
46
- * @param fromIndex Start index (inclusive)
47
- * @param toIndex End index (exclusive)
48
- */
49
- subList(fromIndex: number, toIndex: number): ReadonlyList<T>;
50
- /**
51
- * Returns the first element in the list.
52
- *
53
- * @throws Error if list is empty
54
- */
55
- first(): T;
56
- /**
57
- * Returns the last element in the list.
58
- *
59
- * @throws Error if list is empty
60
- */
61
- last(): T;
62
- }
63
- /**
64
- * List<T> - Mutable ordered collection with indexed access.
65
- *
66
- * Mirrors java.util.List with full mutation capabilities.
67
- * Provides methods to insert, replace, and remove elements by index.
68
- */
69
- export interface List<T> extends ReadonlyList<T>, Collection<T> {
70
- /**
71
- * Replaces the element at the specified position.
72
- *
73
- * @param index The index of the element to replace
74
- * @param element The new element
75
- * @returns The element previously at the specified position
76
- * @throws RangeError if index is out of bounds
77
- */
78
- set(index: number, element: T): T;
79
- /**
80
- * Inserts an element at the specified position.
81
- * Shifts elements at and after the position to the right.
82
- *
83
- * @param index The index at which to insert
84
- * @param element The element to insert
85
- * @throws RangeError if index is out of bounds (0 to size inclusive)
86
- */
87
- insert(index: number, element: T): void;
88
- /**
89
- * Inserts all elements from the specified collection at the specified position.
90
- *
91
- * @param index The index at which to insert
92
- * @param other The collection whose elements to insert
93
- * @returns true if the list changed
94
- */
95
- insertAll(index: number, other: Iterable<T>): boolean;
96
- /**
97
- * Removes the element at the specified position.
98
- * Shifts elements after the position to the left.
99
- *
100
- * @param index The index of the element to remove
101
- * @returns The element that was removed
102
- * @throws RangeError if index is out of bounds
103
- */
104
- removeAt(index: number): T;
105
- /**
106
- * Removes elements in the specified index range.
107
- *
108
- * @param fromIndex Start index (inclusive)
109
- * @param toIndex End index (exclusive)
110
- */
111
- removeRange(fromIndex: number, toIndex: number): void;
112
- /**
113
- * Sorts this list according to the specified comparator.
114
- *
115
- * @param compare The comparison function
116
- */
117
- sort(compare?: Compare<T>): void;
118
- /**
119
- * Reverses the order of elements in this list.
120
- */
121
- reverse(): void;
122
- /**
123
- * Returns a mutable sublist view.
124
- *
125
- * @param fromIndex Start index (inclusive)
126
- * @param toIndex End index (exclusive)
127
- */
128
- subList(fromIndex: number, toIndex: number): List<T>;
129
- /**
130
- * Appends an element to the end of this list.
131
- * Equivalent to add() but doesn't return boolean.
132
- *
133
- * @param element The element to append
134
- */
135
- push(element: T): void;
136
- /**
137
- * Removes and returns the last element in this list.
138
- *
139
- * @returns The last element
140
- * @throws Error if list is empty
141
- */
142
- pop(): T;
143
- /**
144
- * Removes and returns the first element in this list.
145
- *
146
- * @returns The first element
147
- * @throws Error if list is empty
148
- */
149
- shift(): T;
150
- /**
151
- * Prepends an element to the beginning of this list.
152
- *
153
- * @param element The element to prepend
154
- */
155
- unshift(element: T): void;
156
- }
157
- /**
158
- * RandomAccess - Marker interface for lists with O(1) indexed access.
159
- *
160
- * Indicates that the list provides fast (constant-time) random access.
161
- * Examples: ArrayList (yes), LinkedList (no).
162
- */
163
- export interface RandomAccess {
164
- /**
165
- * Marker property to indicate random access capability.
166
- * Always true for collections implementing this interface.
167
- */
168
- readonly supportsRandomAccess: true;
169
- }
170
- /**
171
- * Stack<T> - LIFO (Last-In-First-Out) collection.
172
- *
173
- * A stack of elements with push/pop operations.
174
- * Can be implemented as a specialized list or standalone.
175
- */
176
- export interface Stack<T> extends Iterable<T> {
177
- /** Number of elements */
178
- readonly size: number;
179
- /** True if empty */
180
- readonly isEmpty: boolean;
181
- /**
182
- * Pushes an element onto the stack.
183
- */
184
- push(element: T): void;
185
- /**
186
- * Removes and returns the top element.
187
- *
188
- * @throws Error if stack is empty
189
- */
190
- pop(): T;
191
- /**
192
- * Returns the top element without removing it.
193
- *
194
- * @throws Error if stack is empty
195
- */
196
- peek(): T;
197
- /**
198
- * Removes all elements.
199
- */
200
- clear(): void;
201
- /**
202
- * Searches for an element and returns its distance from the top.
203
- * Returns -1 if not found.
204
- */
205
- search(element: T): number;
206
- }
207
- /**
208
- * Vector<T> - Synchronized growable array.
209
- *
210
- * Like ArrayList but with synchronized access.
211
- * Legacy interface from Java; in our framework, use compose(synchronized())(arrayList()) instead.
212
- */
213
- export interface Vector<T> extends List<T> {
214
- /**
215
- * Current capacity of the underlying array.
216
- */
217
- readonly capacity: number;
218
- /**
219
- * Trims capacity to current size to minimize memory usage.
220
- */
221
- trimToSize(): void;
222
- /**
223
- * Increases capacity to ensure it can hold at least the specified number of elements.
224
- */
225
- ensureCapacity(minCapacity: number): void;
226
- }
227
- /**
228
- * CircularList<T> - List with circular/ring buffer behavior.
229
- *
230
- * When capacity is reached, oldest elements are overwritten.
231
- * Useful for fixed-size buffers like logs or history.
232
- */
233
- export interface CircularList<T> extends List<T> {
234
- /**
235
- * Maximum capacity of the circular list.
236
- */
237
- readonly capacity: number;
238
- /**
239
- * Returns true if the list has reached capacity.
240
- */
241
- readonly isFull: boolean;
242
- /**
243
- * Number of elements that have been overwritten.
244
- */
245
- readonly overwriteCount: number;
246
- }
247
- //# sourceMappingURL=list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/interfaces/list.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC5D;;;;;;OAMG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC;IAEtB;;;;;;OAMG;IACH,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEhD;;;;;;OAMG;IACH,WAAW,CAAC,OAAO,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEpD;;;;;;;;OAQG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;IAE7D;;;;OAIG;IACH,KAAK,IAAI,CAAC,CAAC;IAEX;;;;OAIG;IACH,IAAI,IAAI,CAAC,CAAC;CACX;AAED;;;;;GAKG;AACH,MAAM,WAAW,IA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AAC,CAAC;IAC3C,yBAAyB;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,oBAAoB;IACpB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAEvB;;;;OAIG;IACH,GAAG,IAAI,CAAC,CAAC;IAET;;;;OAIG;IACH,IAAI,IAAI,CAAC,CAAC;IAEV;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;IAEd;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,MAAM,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,CAAC,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,UAAU,IAAI,IAAI,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,CAAC,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * List interfaces that mirror Java's List interface.
3
- *
4
- * Lists are ordered collections that allow duplicate elements
5
- * and provide positional (indexed) access to elements.
6
- */
7
- export {};
8
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../src/interfaces/list.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,344 +0,0 @@
1
- /**
2
- * Map interfaces that mirror Java's Map interface hierarchy.
3
- *
4
- * Maps store key-value pairs and provide efficient lookup by key.
5
- * Keys are unique within a map.
6
- */
7
- import type { Eq, Compare } from "../core/traits.js";
8
- import type { ReadonlyCollection } from "./collection.js";
9
- /**
10
- * Entry<K, V> - An immutable key-value pair from a map.
11
- *
12
- * Unlike java.util.Map.Entry which has setValue(), our entries are immutable
13
- * snapshots. To update a value, use map.set(key, newValue) instead.
14
- *
15
- * This prevents accidental mutation and makes entries safe to share.
16
- */
17
- export interface Entry<K, V> {
18
- readonly key: K;
19
- readonly value: V;
20
- }
21
- /**
22
- * ReadonlyMapLike<K, V> - Readonly key-value mapping.
23
- *
24
- * Provides read-only access to map operations.
25
- * Note: We use "MapLike" to avoid conflicts with TypeScript's built-in Map type.
26
- */
27
- export interface ReadonlyMapLike<K, V> extends Iterable<Entry<K, V>> {
28
- /**
29
- * Returns the number of key-value pairs in this map.
30
- */
31
- readonly size: number;
32
- /**
33
- * Returns true if this map contains no key-value mappings.
34
- */
35
- readonly isEmpty: boolean;
36
- /**
37
- * Returns true if this map contains a mapping for the specified key.
38
- */
39
- has(key: K): boolean;
40
- /**
41
- * Returns the value to which the specified key is mapped.
42
- *
43
- * @throws Error if key is not present
44
- */
45
- get(key: K): V;
46
- /**
47
- * Returns the value for the key, or undefined if not present.
48
- */
49
- getOrUndefined(key: K): V | undefined;
50
- /**
51
- * Returns the value for the key, or the default value if not present.
52
- */
53
- getOrDefault(key: K, defaultValue: V): V;
54
- /**
55
- * Returns true if this map maps one or more keys to the specified value.
56
- */
57
- containsValue(value: V): boolean;
58
- /**
59
- * Returns an iterable view of the keys in this map.
60
- */
61
- keys(): Iterable<K>;
62
- /**
63
- * Returns an iterable view of the values in this map.
64
- */
65
- values(): Iterable<V>;
66
- /**
67
- * Returns an iterable view of the key-value pairs in this map.
68
- */
69
- entries(): Iterable<Entry<K, V>>;
70
- /**
71
- * Performs the given action for each key-value pair.
72
- */
73
- forEach(action: (value: V, key: K, map: this) => void): void;
74
- /**
75
- * Returns the equality function used for keys.
76
- */
77
- readonly keyEq: Eq<K>;
78
- /**
79
- * Returns the equality function used for values.
80
- */
81
- readonly valueEq: Eq<V>;
82
- }
83
- /**
84
- * MapLike<K, V> - Mutable key-value mapping.
85
- *
86
- * Mirrors java.util.Map.
87
- */
88
- export interface MapLike<K, V> extends ReadonlyMapLike<K, V> {
89
- /**
90
- * Associates the specified value with the specified key in this map.
91
- * If the map previously contained a mapping for the key, the old value is replaced.
92
- *
93
- * @param key The key
94
- * @param value The value
95
- * @returns The previous value associated with key, or undefined if none
96
- */
97
- set(key: K, value: V): V | undefined;
98
- /**
99
- * Associates value with key only if key is not already present.
100
- *
101
- * @returns The current value (existing or newly set)
102
- */
103
- setIfAbsent(key: K, value: V): V;
104
- /**
105
- * Removes the mapping for a key if it is present.
106
- *
107
- * @returns The value that was associated with key, or undefined if none
108
- */
109
- delete(key: K): V | undefined;
110
- /**
111
- * Removes the entry for key only if currently mapped to the specified value.
112
- *
113
- * @returns true if the entry was removed
114
- */
115
- deleteEntry(key: K, value: V): boolean;
116
- /**
117
- * Replaces the entry for key only if currently mapped to some value.
118
- *
119
- * @returns The previous value, or undefined if key was not present
120
- */
121
- replace(key: K, value: V): V | undefined;
122
- /**
123
- * Replaces the entry for key only if currently mapped to the specified oldValue.
124
- *
125
- * @returns true if the value was replaced
126
- */
127
- replaceEntry(key: K, oldValue: V, newValue: V): boolean;
128
- /**
129
- * If the specified key is not already associated with a value,
130
- * computes its value using the given function and enters it into the map.
131
- *
132
- * @returns The current (existing or computed) value associated with the key
133
- */
134
- computeIfAbsent(key: K, mappingFunction: (key: K) => V): V;
135
- /**
136
- * If the value for the specified key is present, attempts to compute
137
- * a new mapping given the key and its current mapped value.
138
- *
139
- * @returns The new value associated with the key, or undefined if none
140
- */
141
- computeIfPresent(key: K, remappingFunction: (key: K, value: V) => V | undefined): V | undefined;
142
- /**
143
- * Attempts to compute a mapping for the specified key and its current mapped value.
144
- *
145
- * @returns The new value associated with the key, or undefined if none
146
- */
147
- compute(key: K, remappingFunction: (key: K, value: V | undefined) => V | undefined): V | undefined;
148
- /**
149
- * If the specified key is not already associated with a value or is
150
- * associated with undefined, associates it with the given non-undefined value.
151
- * Otherwise, replaces the value with the results of the given remapping function.
152
- *
153
- * @returns The new value associated with the key, or undefined if none
154
- */
155
- merge(key: K, value: V, remappingFunction: (oldValue: V, newValue: V) => V | undefined): V | undefined;
156
- /**
157
- * Copies all mappings from the specified map to this map.
158
- */
159
- putAll(other: ReadonlyMapLike<K, V> | Iterable<Entry<K, V>>): void;
160
- /**
161
- * Removes all mappings from this map.
162
- */
163
- clear(): void;
164
- }
165
- /**
166
- * SortedMap<K, V> - Map that maintains keys in sorted order.
167
- *
168
- * Mirrors java.util.SortedMap.
169
- */
170
- export interface SortedMap<K, V> extends MapLike<K, V> {
171
- /**
172
- * Returns the comparison function used to order keys.
173
- */
174
- readonly comparator: Compare<K>;
175
- /**
176
- * Returns the first (lowest) key in this map.
177
- *
178
- * @throws Error if map is empty
179
- */
180
- firstKey(): K;
181
- /**
182
- * Returns the last (highest) key in this map.
183
- *
184
- * @throws Error if map is empty
185
- */
186
- lastKey(): K;
187
- /**
188
- * Returns a view of the portion of this map whose keys are less than toKey.
189
- */
190
- headMap(toKey: K): SortedMap<K, V>;
191
- /**
192
- * Returns a view of the portion of this map whose keys are greater than or equal to fromKey.
193
- */
194
- tailMap(fromKey: K): SortedMap<K, V>;
195
- /**
196
- * Returns a view of the portion of this map whose keys range from fromKey to toKey.
197
- */
198
- subMap(fromKey: K, toKey: K): SortedMap<K, V>;
199
- }
200
- /**
201
- * NavigableMap<K, V> - Extended sorted map with navigation methods.
202
- *
203
- * Mirrors java.util.NavigableMap.
204
- */
205
- export interface NavigableMap<K, V> extends SortedMap<K, V> {
206
- /**
207
- * Returns the greatest key less than or equal to the given key, or undefined if none.
208
- */
209
- floorKey(key: K): K | undefined;
210
- /**
211
- * Returns the least key greater than or equal to the given key, or undefined if none.
212
- */
213
- ceilingKey(key: K): K | undefined;
214
- /**
215
- * Returns the greatest key strictly less than the given key, or undefined if none.
216
- */
217
- lowerKey(key: K): K | undefined;
218
- /**
219
- * Returns the least key strictly greater than the given key, or undefined if none.
220
- */
221
- higherKey(key: K): K | undefined;
222
- /**
223
- * Returns the entry for the greatest key less than or equal to the given key, or undefined.
224
- */
225
- floorEntry(key: K): Entry<K, V> | undefined;
226
- /**
227
- * Returns the entry for the least key greater than or equal to the given key, or undefined.
228
- */
229
- ceilingEntry(key: K): Entry<K, V> | undefined;
230
- /**
231
- * Returns the entry for the greatest key strictly less than the given key, or undefined.
232
- */
233
- lowerEntry(key: K): Entry<K, V> | undefined;
234
- /**
235
- * Returns the entry for the least key strictly greater than the given key, or undefined.
236
- */
237
- higherEntry(key: K): Entry<K, V> | undefined;
238
- /**
239
- * Returns the first (lowest) entry in this map, or undefined if empty.
240
- */
241
- firstEntry(): Entry<K, V> | undefined;
242
- /**
243
- * Returns the last (highest) entry in this map, or undefined if empty.
244
- */
245
- lastEntry(): Entry<K, V> | undefined;
246
- /**
247
- * Removes and returns the first (lowest) entry, or undefined if empty.
248
- */
249
- pollFirstEntry(): Entry<K, V> | undefined;
250
- /**
251
- * Removes and returns the last (highest) entry, or undefined if empty.
252
- */
253
- pollLastEntry(): Entry<K, V> | undefined;
254
- /**
255
- * Returns a reverse order view of this map.
256
- */
257
- descendingMap(): NavigableMap<K, V>;
258
- /**
259
- * Returns a reverse order iterable of the keys.
260
- */
261
- descendingKeys(): Iterable<K>;
262
- }
263
- /**
264
- * MultiMap<K, V> - Map that allows multiple values per key.
265
- *
266
- * Not in standard Java Collections, but commonly used.
267
- */
268
- export interface MultiMap<K, V> {
269
- readonly size: number;
270
- readonly isEmpty: boolean;
271
- /**
272
- * Returns true if the map contains at least one value for the key.
273
- */
274
- has(key: K): boolean;
275
- /**
276
- * Returns all values associated with the key.
277
- */
278
- get(key: K): ReadonlyCollection<V>;
279
- /**
280
- * Adds a value to the collection of values for the key.
281
- */
282
- put(key: K, value: V): boolean;
283
- /**
284
- * Adds all values to the collection of values for the key.
285
- */
286
- putAll(key: K, values: Iterable<V>): boolean;
287
- /**
288
- * Removes a single occurrence of value from the key's collection.
289
- */
290
- remove(key: K, value: V): boolean;
291
- /**
292
- * Removes all values for the key.
293
- */
294
- removeAll(key: K): ReadonlyCollection<V>;
295
- /**
296
- * Replaces all values for the key with the given values.
297
- */
298
- replaceAll(key: K, values: Iterable<V>): ReadonlyCollection<V>;
299
- /**
300
- * Returns all keys that have at least one value.
301
- */
302
- keys(): Iterable<K>;
303
- /**
304
- * Returns all entries (key with one of its values).
305
- */
306
- entries(): Iterable<Entry<K, V>>;
307
- /**
308
- * Removes all mappings.
309
- */
310
- clear(): void;
311
- }
312
- /**
313
- * BiMap<K, V> - Bidirectional map (1:1 mapping).
314
- *
315
- * Both keys and values are unique.
316
- * Allows lookup by key or by value.
317
- */
318
- export interface BiMap<K, V> extends MapLike<K, V> {
319
- /**
320
- * Returns the inverse view of this bimap (swaps keys and values).
321
- */
322
- inverse(): BiMap<V, K>;
323
- /**
324
- * Returns the key mapped to the specified value, or undefined if none.
325
- */
326
- getKey(value: V): K | undefined;
327
- /**
328
- * Forces the put by removing any existing entry with the same value.
329
- */
330
- forcePut(key: K, value: V): V | undefined;
331
- }
332
- /**
333
- * WeakMapLike<K extends object, V> - Map with weak key references.
334
- *
335
- * Mirrors JavaScript's WeakMap but with our interface conventions.
336
- * Keys must be objects and are held weakly (allow garbage collection).
337
- */
338
- export interface WeakMapLike<K extends object, V> {
339
- has(key: K): boolean;
340
- get(key: K): V | undefined;
341
- set(key: K, value: V): this;
342
- delete(key: K): boolean;
343
- }
344
- //# sourceMappingURL=map.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/interfaces/map.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,E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AAG,SAAS,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CAC3C;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC;IAC9C,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC;IACrB,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IAC3B,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC;CACzB"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Map interfaces that mirror Java's Map interface hierarchy.
3
- *
4
- * Maps store key-value pairs and provide efficient lookup by key.
5
- * Keys are unique within a map.
6
- */
7
- export {};
8
- //# sourceMappingURL=map.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"map.js","sourceRoot":"","sources":["../../src/interfaces/map.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}