Class TernarySearchTree<K, V>
Properties
Private
_root
_root: undefined | TernarySearchTreeNode<K, V> Methods
Private
_forEach
- _forEach(node, callback): void
Parameters
- node: undefined | TernarySearchTreeNode<K, V>
- callback: ((value, index) => any)
- (value, index): any
Returns any
Returns void
Private
_nodeIterator
- _nodeIterator(node): Iterator<V, any, undefined>
Parameters
- node: TernarySearchTreeNode<K, V>
Returns Iterator<V, any, undefined>
clear
- clear(): void
Returns void
delete
- delete(key): void
Returns void
findSubstr
- findSubstr(key): undefined | V
Returns undefined | V
findSuperstr
- findSuperstr(key): undefined | Iterator<V, any, undefined>
Returns undefined | Iterator<V, any, undefined>
forEach
- forEach(callback): void
Parameters
- callback: ((value, index) => any)
- (value, index): any
Returns any
Returns void
get
- get(key): undefined | V
Returns undefined | V
set
- set(key, element): undefined | V
Returns undefined | V