Skip to main content

class NonLeafTreeBuilder<T,C>

undocumented

Implements: BuilderBase<T,C>

Type parameters

NameConstraintsDescription
Tundocumented
CBlockBuilder<T>undocumented

Properties

_left

undocumented

Definition

_left?: NonLeafBlockBuilder<T, C> | undefined;

_middle

undocumented

Definition

_middle?: NonLeafBuilder<T, NonLeafBlockBuilder<T, C>> | undefined;

_right

undocumented

Definition

_right?: NonLeafBlockBuilder<T, C> | undefined;

context

undocumented

Definition

readonly context: ListContext;

left

undocumented

Definition

get left(): NonLeafBlockBuilder<T, C>;

set left(value: NonLeafBlockBuilder<T, C>);

length

undocumented

Definition

length: number;

Overrides

BuilderBase.length

level

undocumented

Definition

readonly level: number;

middle

undocumented

Definition

get middle(): NonLeafBuilder<T, NonLeafBlockBuilder<T, C>> | undefined;

set middle(value: NonLeafBuilder<T, NonLeafBlockBuilder<T, C>> | undefined);

undocumented

Definition

get right(): NonLeafBlockBuilder<T, C>;

set right(value: NonLeafBlockBuilder<T, C>);

source

undocumented

Definition

source?: NonLeafTree<T, any> | undefined;

Methods

append

undocumented

Definition

append(value: C): void;

Parameters

NameTypeDescription
valueC

Overrides

BuilderBase.append

build

undocumented

Definition

build(): NonLeafTree<T, any>;

Overrides

BuilderBase.build

buildMap

undocumented

Definition

buildMap<T2>(f: (value: T) => T2): NonLeafTree<T2, any>;

Type parameters

NameDescription
T2

Parameters

NameTypeDescription
f(value: T) => T2

Overrides

BuilderBase.buildMap

first

undocumented

Definition

first(): C;

get

undocumented

Definition

get<O>(index: number, otherwise?: OptLazy<O>): T | O;

Type parameters

NameDescription
O

Parameters

NameTypeDescription
indexnumber
otherwiseOptLazy<O>

Overrides

BuilderBase.get

getChildLength

undocumented

Definition

getChildLength(child: C): number;

Parameters

NameTypeDescription
childC

insert

undocumented

Definition

insert(index: number, value: T): void;

Parameters

NameTypeDescription
indexnumber
valueT

Overrides

BuilderBase.insert

last

undocumented

Definition

last(): C;

modifyFirstChild

undocumented

Definition

modifyFirstChild(f: (child: C) => number |undefined): number| undefined;

Parameters

NameTypeDescription
f(child: C) => number | undefined

modifyLastChild

undocumented

Definition

modifyLastChild(f: (child: C) => number |undefined): number| undefined;

Parameters

NameTypeDescription
f(child: C) => number | undefined

normalized

undocumented

Definition

normalized(): NonLeafBuilder<T, C>;

prepareMutate

undocumented

Definition

prepareMutate(): void;

prepend

undocumented

Definition

prepend(value: C): void;

Parameters

NameTypeDescription
valueC

Overrides

BuilderBase.prepend

remove

undocumented

Definition

remove(index: number): T;

Parameters

NameTypeDescription
indexnumber

Overrides

BuilderBase.remove