Home Reference Source
public class | source

InterfaceRadixTree

Extends:

common/trees/Interface-Tree~InterfaceTree → InterfaceRadixTree

Member Summary

Public Members
public

root: *

Method Summary

Public Methods
public

add(element: *): *

Adding an input to the Radix Tree

public
public

delete(input: *): boolean

Delete Node from the Radix Tree

public

search(input: *): {"result": *, "node": *, "value": *}

Searching an input in the Radix Tree

public

update(input: *, value: *): boolean

update a node in the radix tree

Public Members

public root: * source

Public Methods

public add(element: *): * source

Adding an input to the Radix Tree

Params:

NameTypeAttributeDescription
element *

can be a Base String, Buffer or CryptoWebDollarData

Return:

*

public createRoot() source

public delete(input: *): boolean source

Delete Node from the Radix Tree

Params:

NameTypeAttributeDescription
input *

Return:

boolean

Searching an input in the Radix Tree

Params:

NameTypeAttributeDescription
input *

Return:

{"result": *, "node": *, "value": *}

public update(input: *, value: *): boolean source

update a node in the radix tree

Params:

NameTypeAttributeDescription
input *
value *

Return:

boolean