Search
Preparing search index...
The search index is not available
Data Structures and Algorithms
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Data Structures and Algorithms
LinkedList
Class LinkedList<T>
Type parameters
T
Hierarchy
LinkedList
Index
Constructors
constructor
Properties
FIRST_
ELEMENT
LAST_
ELEMENT
LINKEDLIST_
SIZE
Accessors
back
back
Element
empty
front
front
Element
size
Methods
delete
initialize
With
insert
After
insert
Before
pop
Back
pop
Front
push
Back
push
Front
to
Array
Constructors
constructor
new
Linked
List
<
T
>
(
initialArray
?:
T
[]
)
:
LinkedList
<
T
>
Type parameters
T
Parameters
initialArray:
T
[]
= []
Returns
LinkedList
<
T
>
Properties
Private
FIRST_
ELEMENT
FIRST_
ELEMENT
:
null
|
LinkedListElement
<
T
>
Private
LAST_
ELEMENT
LAST_
ELEMENT
:
null
|
LinkedListElement
<
T
>
Private
LINKEDLIST_
SIZE
LINKEDLIST_
SIZE
:
number
Accessors
back
get
back
(
)
:
T
Returns
T
back
Element
get
backElement
(
)
:
LinkedListElement
<
T
>
Returns
LinkedListElement
<
T
>
empty
get
empty
(
)
:
boolean
Returns
boolean
front
get
front
(
)
:
T
Returns
T
front
Element
get
frontElement
(
)
:
LinkedListElement
<
T
>
Returns
LinkedListElement
<
T
>
size
get
size
(
)
:
number
Returns
number
Methods
delete
delete
(
target
:
LinkedListElement
<
T
>
)
:
void
Parameters
target:
LinkedListElement
<
T
>
Returns
void
Private
initialize
With
initialize
With
(
element
:
LinkedListElement
<
T
>
)
:
void
Parameters
element:
LinkedListElement
<
T
>
Returns
void
insert
After
insert
After
(
target
:
LinkedListElement
<
T
>
, value
:
T
)
:
LinkedListElement
<
T
>
Parameters
target:
LinkedListElement
<
T
>
value:
T
Returns
LinkedListElement
<
T
>
insert
Before
insert
Before
(
target
:
LinkedListElement
<
T
>
, value
:
T
)
:
LinkedListElement
<
T
>
Parameters
target:
LinkedListElement
<
T
>
value:
T
Returns
LinkedListElement
<
T
>
pop
Back
pop
Back
(
)
:
T
Returns
T
pop
Front
pop
Front
(
)
:
T
Returns
T
push
Back
push
Back
(
value
:
T
)
:
LinkedListElement
<
T
>
Parameters
value:
T
Returns
LinkedListElement
<
T
>
push
Front
push
Front
(
value
:
T
)
:
LinkedListElement
<
T
>
Parameters
value:
T
Returns
LinkedListElement
<
T
>
to
Array
to
Array
(
)
:
T
[]
Returns
T
[]
Exports
Linked
List
constructor
FIRST_
ELEMENT
LAST_
ELEMENT
LINKEDLIST_
SIZE
back
back
Element
empty
front
front
Element
size
delete
initialize
With
insert
After
insert
Before
pop
Back
pop
Front
push
Back
push
Front
to
Array