Class SortedLinkedList<T>
Constructors
constructor
- new SortedLinkedList<T>(comparator): SortedLinkedList<T>
Parameters
- comparator: ((a: T, b: T) => number)
- (a, b): number
Returns number
Properties
Optional
_first
_first?: LinkedListItem<T> Optional
_last
_last?: LinkedListItem<T> Accessors
length
- get length(): number
Returns number
Methods
_remove
- _remove(item): void
Returns void
add
- add(item): void
Returns void
clear
- clear(): void
Returns void
popFront
- popFront(): undefined | T
Returns undefined | T
A sorted linked list.