@noldova/context.collections 0.0.10 → 0.0.12

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 (59) hide show
  1. package/README.md +42 -14
  2. package/api/index.d.ts +1479 -0
  3. package/api/index.js +17 -0
  4. package/api/index.js.map +1 -1
  5. package/extensions/enumerable.extensions.js +36 -0
  6. package/extensions/enumerable.extensions.js.map +1 -0
  7. package/interfaces/i-equality-comparer.js +9 -0
  8. package/interfaces/i-equality-comparer.js.map +1 -0
  9. package/interfaces/i-read-only-dictionary.js +9 -0
  10. package/interfaces/i-read-only-dictionary.js.map +1 -0
  11. package/interfaces/i-read-only-list.js +9 -0
  12. package/interfaces/i-read-only-list.js.map +1 -0
  13. package/interfaces/i-read-only-set.js +9 -0
  14. package/interfaces/i-read-only-set.js.map +1 -0
  15. package/models/change-counter.js +23 -0
  16. package/models/change-counter.js.map +1 -0
  17. package/models/default-equality-comparer.js +35 -0
  18. package/models/default-equality-comparer.js.map +1 -0
  19. package/models/dictionary.js +74 -0
  20. package/models/dictionary.js.map +1 -0
  21. package/models/enumerable.js +399 -0
  22. package/models/enumerable.js.map +1 -0
  23. package/models/grouping.js +21 -0
  24. package/models/grouping.js.map +1 -0
  25. package/models/hash-set.js +87 -0
  26. package/models/hash-set.js.map +1 -0
  27. package/models/hash-table.js +122 -0
  28. package/models/hash-table.js.map +1 -0
  29. package/models/key-equality-comparer.js +22 -0
  30. package/models/key-equality-comparer.js.map +1 -0
  31. package/models/key-value-pair.js +16 -0
  32. package/models/key-value-pair.js.map +1 -0
  33. package/models/list.js +121 -0
  34. package/models/list.js.map +1 -0
  35. package/models/ordered-enumerable.js +35 -0
  36. package/models/ordered-enumerable.js.map +1 -0
  37. package/models/queue.js +80 -0
  38. package/models/queue.js.map +1 -0
  39. package/models/read-only-dictionary.js +37 -0
  40. package/models/read-only-dictionary.js.map +1 -0
  41. package/models/read-only-list.js +31 -0
  42. package/models/read-only-list.js.map +1 -0
  43. package/models/read-only-set.js +37 -0
  44. package/models/read-only-set.js.map +1 -0
  45. package/models/sort-entry.js +16 -0
  46. package/models/sort-entry.js.map +1 -0
  47. package/models/stack.js +57 -0
  48. package/models/stack.js.map +1 -0
  49. package/package.json +6 -2
  50. package/resources.js +26 -0
  51. package/resources.js.map +1 -0
  52. package/services/binary-search.service.js +5 -3
  53. package/services/binary-search.service.js.map +1 -1
  54. package/services/comparer.js +48 -0
  55. package/services/comparer.js.map +1 -0
  56. package/services/equality-comparers.js +16 -0
  57. package/services/equality-comparers.js.map +1 -0
  58. package/types/comparison.js +9 -0
  59. package/types/comparison.js.map +1 -0
package/api/index.js CHANGED
@@ -5,5 +5,22 @@
5
5
  * This source code is licensed under the license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
+ import "../extensions/enumerable.extensions.js";
9
+ export { DefaultEqualityComparer } from "../models/default-equality-comparer.js";
10
+ export { Dictionary } from "../models/dictionary.js";
11
+ export { Enumerable } from "../models/enumerable.js";
12
+ export { Grouping } from "../models/grouping.js";
13
+ export { HashSet } from "../models/hash-set.js";
14
+ export { KeyEqualityComparer } from "../models/key-equality-comparer.js";
15
+ export { KeyValuePair } from "../models/key-value-pair.js";
16
+ export { List } from "../models/list.js";
17
+ export { OrderedEnumerable } from "../models/ordered-enumerable.js";
18
+ export { Queue } from "../models/queue.js";
19
+ export { ReadOnlyDictionary } from "../models/read-only-dictionary.js";
20
+ export { ReadOnlyList } from "../models/read-only-list.js";
21
+ export { ReadOnlySet } from "../models/read-only-set.js";
22
+ export { Stack } from "../models/stack.js";
8
23
  export { BinarySearchService } from "../services/binary-search.service.js";
24
+ export { Comparer } from "../services/comparer.js";
25
+ export { EqualityComparers } from "../services/equality-comparers.js";
9
26
  //# sourceMappingURL=index.js.map
package/api/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/noldova.context.collections/src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/noldova.context.collections/src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,wCAAwC,CAAC;AAMhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Dictionary } from "../models/dictionary.js";
9
+ import { Enumerable, QueryEnumerable } from "../models/enumerable.js";
10
+ import { Grouping } from "../models/grouping.js";
11
+ import { HashSet } from "../models/hash-set.js";
12
+ import { HashTable } from "../models/hash-table.js";
13
+ import { KeyValuePair } from "../models/key-value-pair.js";
14
+ import { List } from "../models/list.js";
15
+ import { OrderedEnumerable } from "../models/ordered-enumerable.js";
16
+ import { Comparer } from "../services/comparer.js";
17
+ Enumerable.prototype.orderBy = function (key, comparison = Comparer.compare) {
18
+ return new OrderedEnumerable(this, [OrderedEnumerable.by(key, comparison)]);
19
+ };
20
+ Enumerable.prototype.orderByDescending = function (key, comparison = Comparer.compare) {
21
+ return new OrderedEnumerable(this, [OrderedEnumerable.by(key, Comparer.descending(comparison))]);
22
+ };
23
+ Enumerable.prototype.groupBy = function (key, comparer) {
24
+ return new QueryEnumerable(() => Iterator.from(HashTable.groupOf(this, key, comparer))
25
+ .map((group) => new Grouping(group.key, group.value)));
26
+ };
27
+ Enumerable.prototype.toList = function () {
28
+ return new List(this);
29
+ };
30
+ Enumerable.prototype.toHashSet = function (comparer) {
31
+ return new HashSet(this, comparer);
32
+ };
33
+ Enumerable.prototype.toDictionary = function (key, value, comparer) {
34
+ return new Dictionary(this.select((item) => new KeyValuePair(key(item), value(item))), comparer);
35
+ };
36
+ //# sourceMappingURL=enumerable.extensions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enumerable.extensions.js","sourceRoot":"","sources":["../../../../src/noldova.context.collections/src/extensions/enumerable.extensions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,E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AChG,OAAO,IAAI,OAAO,CAAI,IAAI,EAAE,QAAQ,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,CAAC,YAAY,GAAG,UAElC,GAAsB,EACtB,KAA0B,EAC1B,QAAkC;IAClC,OAAO,IAAI,UAAU,CAAe,IAAI,CAAC,MAAM,CAAC,CAAC,IAAO,EAA8B,EAAE,CAAC,IAAI,YAAY,CAAe,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;AAC9J,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=i-equality-comparer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-equality-comparer.js","sourceRoot":"","sources":["../../../../src/noldova.context.collections/src/interfaces/i-equality-comparer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=i-read-only-dictionary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-read-only-dictionary.js","sourceRoot":"","sources":["../../../../src/noldova.context.collections/src/interfaces/i-read-only-dictionary.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=i-read-only-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-read-only-list.js","sourceRoot":"","sources":["../../../../src/noldova.context.collections/src/interfaces/i-read-only-list.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=i-read-only-set.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-read-only-set.js","sourceRoot":"","sources":["../../../../src/noldova.context.collections/src/interfaces/i-read-only-set.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { InvalidOperationException } from "@noldova/context.exceptions";
9
+ import { Resources } from "../resources.js";
10
+ export class ChangeCounter {
11
+ count = 0;
12
+ get value() {
13
+ return this.count;
14
+ }
15
+ increment() {
16
+ this.count++;
17
+ }
18
+ throwIfChangedSince(value) {
19
+ if (this.count !== value)
20
+ throw new InvalidOperationException(Resources.collectionModified);
21
+ }
22
+ }
23
+ //# sourceMappingURL=change-counter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"change-counter.js","sourceRoot":"","sources":["../../../../src/noldova.context.collections/src/models/change-counter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,aAAa;IAChB,KAAK,GAAW,CAAC,CAAC;IAE1B,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEM,SAAS;QACd,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAEM,mBAAmB,CAAC,KAAa;QACtC,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK;YACtB,MAAM,IAAI,yBAAyB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;IACtE,CAAC;CACF"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import "@noldova/context.core";
9
+ export class DefaultEqualityComparer {
10
+ static OFFSET_BASIS = 0x811c9dc5;
11
+ static PRIME = 0x01000193;
12
+ objectIds = new WeakMap();
13
+ lastObjectId = 0;
14
+ equals(left, right) {
15
+ return left === right || Number.isNaN(left) && Number.isNaN(right);
16
+ }
17
+ hash(value) {
18
+ if (Object.isObject(value))
19
+ return this.objectIdOf(value);
20
+ const text = String(value);
21
+ let hash = DefaultEqualityComparer.OFFSET_BASIS;
22
+ for (let index = 0; index < text.length; index++)
23
+ hash = Math.imul(hash ^ text.charCodeAt(index), DefaultEqualityComparer.PRIME);
24
+ return hash >>> 0;
25
+ }
26
+ objectIdOf(value) {
27
+ let id = this.objectIds.get(value);
28
+ if (Object.isUndefined(id)) {
29
+ id = ++this.lastObjectId;
30
+ this.objectIds.set(value, id);
31
+ }
32
+ return id;
33
+ }
34
+ }
35
+ //# sourceMappingURL=default-equality-comparer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default-equality-comparer.js","sourceRoot":"","sources":["../../../../src/noldova.context.collections/src/models/default-equality-comparer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAI/B,MAAM,OAAO,uBAAuB;IAC1B,MAAM,CAAU,YAAY,GAAW,UAAU,CAAC;IAClD,MAAM,CAAU,KAAK,GAAW,UAAU,CAAC;IAClC,SAAS,GAA4B,IAAI,OAAO,EAAkB,CAAC;IAC5E,YAAY,GAAW,CAAC,CAAC;IAE1B,MAAM,CAAC,IAAa,EAAE,KAAc;QACzC,OAAO,IAAI,KAAK,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC;IAEM,IAAI,CAAC,KAAc;QACxB,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;YACxB,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAEhC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,IAAI,GAAG,uBAAuB,CAAC,YAAY,CAAC;QAChD,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE;YAC9C,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC;QAEjF,OAAO,IAAI,KAAK,CAAC,CAAC;IACpB,CAAC;IAEO,UAAU,CAAC,KAAa;QAC9B,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC;YAC3B,EAAE,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC;YACzB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAChC,CAAC;QAED,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import "@noldova/context.core";
9
+ import { ArgumentException, KeyNotFoundException } from "@noldova/context.exceptions";
10
+ import { Resources } from "../resources.js";
11
+ import { EqualityComparers } from "../services/equality-comparers.js";
12
+ import { Enumerable } from "./enumerable.js";
13
+ import { HashTable } from "./hash-table.js";
14
+ import { ReadOnlyDictionary } from "./read-only-dictionary.js";
15
+ export class Dictionary extends Enumerable {
16
+ table;
17
+ constructor(entries = [], comparer) {
18
+ super();
19
+ this.table = new HashTable(comparer);
20
+ for (const entry of entries)
21
+ this.add(entry.key, entry.value);
22
+ }
23
+ *[Symbol.iterator]() {
24
+ const version = this.table.changes.value;
25
+ for (const entry of this.table) {
26
+ yield entry;
27
+ this.table.changes.throwIfChangedSince(version);
28
+ }
29
+ }
30
+ count(predicate) {
31
+ return Object.isUndefined(predicate) ? this.table.size : super.count(predicate);
32
+ }
33
+ get(key) {
34
+ const value = this.table.get(key);
35
+ if (Object.isUndefined(value))
36
+ throw new KeyNotFoundException();
37
+ return value;
38
+ }
39
+ tryGet(key) {
40
+ return this.table.get(key);
41
+ }
42
+ set(key, value) {
43
+ this.table.set(key, value);
44
+ }
45
+ add(key, value) {
46
+ if (!this.table.tryAdd(key, value))
47
+ throw new ArgumentException(Resources.keyExists, Resources.keyParameterName);
48
+ }
49
+ tryAdd(key, value) {
50
+ return this.table.tryAdd(key, value);
51
+ }
52
+ remove(key) {
53
+ return this.table.delete(key);
54
+ }
55
+ containsKey(key) {
56
+ return this.table.has(key);
57
+ }
58
+ containsValue(value) {
59
+ return this.table.values().some((candidate) => EqualityComparers.default.equals(candidate, value));
60
+ }
61
+ keys() {
62
+ return this.select((entry) => entry.key);
63
+ }
64
+ values() {
65
+ return this.select((entry) => entry.value);
66
+ }
67
+ clear() {
68
+ this.table.clear();
69
+ }
70
+ asReadOnly() {
71
+ return new ReadOnlyDictionary(this);
72
+ }
73
+ }
74
+ //# sourceMappingURL=dictionary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary.js","sourceRoot":"","sources":["../../../../src/noldova.context.collections/src/models/dictionary.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAItF,OAAO,EAAE,SA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