AccountsTreeNode
Static Method Summary
Static Public Methods | ||
public static |
branchNode(prefix: string, childrenSuffixes: Array<string>, childrenHashes: Array<Hash>): AccountsTreeNode |
|
public static |
isBranchType(type: *): boolean |
|
public static |
isTerminalType(type: *): boolean |
|
public static |
terminalNode(prefix: string, account: Account): AccountsTreeNode |
|
public static |
|
Constructor Summary
Public Constructor | ||
public |
constructor(type: *, prefix: string, arg: Account | Array<string>, arg2: Array<Hash>) |
Member Summary
Public Members | ||
public get |
|
|
public get |
prefix: string |
|
public set |
prefix: string |
|
public get |
serializedSize: number |
Method Summary
Public Methods | ||
public |
equals(o: AccountsTreeNode): boolean |
|
public |
getChild(prefix: string): string |
|
public |
getChildHash(prefix: string): Hash |
|
public |
getChildren(): Array<string> |
|
public |
getFirstChild(): string |
|
public |
getLastChild(): string |
|
public |
hasChildren(): boolean |
|
public |
hasSingleChild(): boolean |
|
public |
|
|
public |
isBranch(): boolean |
|
public |
isChildOf(parent: AccountsTreeNode): boolean Tests if this node is a child of some other node. |
|
public |
isTerminal(): boolean |
|
public |
serialize(buf: *): * |
|
public |
withAccount(account: Account): AccountsTreeNode |
|
public |
withChild(prefix: string, childHash: Hash): AccountsTreeNode |
|
public |
withoutChild(prefix: string): AccountsTreeNode |
Static Public Methods
public static branchNode(prefix: string, childrenSuffixes: Array<string>, childrenHashes: Array<Hash>): AccountsTreeNode source
Params:
Name | Type | Attribute | Description |
prefix | string | ||
childrenSuffixes | Array<string> | ||
childrenHashes | Array<Hash> |
public static isBranchType(type: *): boolean source
Params:
Name | Type | Attribute | Description |
type | * |
Return:
boolean |
public static isTerminalType(type: *): boolean source
Params:
Name | Type | Attribute | Description |
type | * |
Return:
boolean |
public static terminalNode(prefix: string, account: Account): AccountsTreeNode source
Params:
Name | Type | Attribute | Description |
prefix | string | ||
account | Account |
public static unserialize(buf: SerialBuffer): AccountsTreeNode source
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer |
Public Constructors
Public Members
public get prefix: string source
public set prefix: string source
public get serializedSize: number source
Public Methods
public equals(o: AccountsTreeNode): boolean source
Params:
Name | Type | Attribute | Description |
o | AccountsTreeNode |
Return:
boolean |
public getChild(prefix: string): string source
Params:
Name | Type | Attribute | Description |
prefix | string |
Return:
string (nullable: true) |
public isChildOf(parent: AccountsTreeNode): boolean source
Tests if this node is a child of some other node.
Params:
Name | Type | Attribute | Description |
parent | AccountsTreeNode |
Return:
boolean |
public withAccount(account: Account): AccountsTreeNode source
Params:
Name | Type | Attribute | Description |
account | Account |
public withChild(prefix: string, childHash: Hash): AccountsTreeNode source
Params:
Name | Type | Attribute | Description |
prefix | string | ||
childHash | Hash |
public withoutChild(prefix: string): AccountsTreeNode source
Params:
Name | Type | Attribute | Description |
prefix | string |