-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathSortedMapNode.js
50 lines (45 loc) · 1.52 KB
/
SortedMapNode.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Copyright (c) 2017, Applitopia, Inc.
*
* Modified source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* Original source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export class SortedMapNode {
constructor(comparator, options, ownerID) {
this.comparator = comparator;
this.options = options;
this.ownerID = ownerID;
}
getComparator() {}
// eslint-disable-next-line no-unused-vars
get(key, notSetValue) {}
// eslint-disable-next-line no-unused-vars
upsert(ownerID, key, value, didChangeSize, didAlter) {}
// eslint-disable-next-line no-unused-vars
remove(ownerID, key, didChangeSize, didAlter) {}
// eslint-disable-next-line no-unused-vars
fastRemove(ownerID, key, didChangeSize, didAlter) {}
// eslint-disable-next-line no-unused-vars
iterate(fn, reverse) {}
// eslint-disable-next-line no-unused-vars
print(level, maxDepth) {}
// eslint-disable-next-line no-unused-vars
checkConsistency(printFlag) {}
}
export class SortedMapPacker {
// eslint-disable-next-line no-unused-vars
pack(comparator, options, ownerID, collection) {}
}
export class SortedMapNodeFactory {
// eslint-disable-next-line no-unused-vars
createNode(comparator, options, ownerID, entries, nodes) {}
createPacker() {}
// eslint-disable-next-line no-unused-vars
createIterator(map, type, reverse) {}
}