Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
models/data-structures/list/one-directional-linked-list
OneDirectionalLinkedList
Class OneDirectionalLinkedList<T>
Array should have pointer to last item
Type parameters
T
Hierarchy
AbstractLinkedList
<
T
,
OneDirectionalLinkedListEntry
<
T
>
>
OneDirectionalLinkedList
Implements
List
<
T
>
Index
Constructors
constructor
Properties
first
local
Length
Accessors
empty
length
Methods
[
Symbol.iterator]
add
append
clear
contains
for
Each
get
Holder
AtNot
Checked
get
Item
At
prepend
remove
remove
Item
At
to
Array
Constructors
constructor
new
One
Directional
Linked
List<T>
(
)
:
OneDirectionalLinkedList
<
T
>
Type parameters
T
Returns
OneDirectionalLinkedList
<
T
>
Properties
Protected
Optional
first
first
:
OneDirectionalLinkedListEntry
<
T
>
Protected
local
Length
local
Length
:
number
= 0
Accessors
empty
get
empty
(
)
:
boolean
Returns
boolean
length
get
length
(
)
:
number
Returns
number
Methods
[
Symbol.iterator]
[
Symbol.iterator]
(
)
:
IterableIterator
<
T
>
Returns
IterableIterator
<
T
>
add
add
(
item
:
T
)
:
boolean
Parameters
item:
T
Returns
boolean
append
append
(
item
:
T
)
:
boolean
Parameters
item:
T
Returns
boolean
clear
clear
(
)
:
void
Returns
void
contains
contains
(
item
:
T
)
:
boolean
Parameters
item:
T
Returns
boolean
for
Each
for
Each
(
callback
:
(
item
:
T
, index
:
number
)
=>
boolean
)
:
void
Parameters
callback:
(
item
:
T
, index
:
number
)
=>
boolean
(
item
:
T
, index
:
number
)
:
boolean
Parameters
item:
T
index:
number
Returns
boolean
Returns
void
Protected
get
Holder
AtNot
Checked
get
Holder
AtNot
Checked
(
index
:
number
)
:
undefined
|
OneDirectionalLinkedListEntry
<
T
>
Parameters
index:
number
Returns
undefined
|
OneDirectionalLinkedListEntry
<
T
>
get
Item
At
get
Item
At
(
index
:
number
)
:
undefined
|
T
Parameters
index:
number
Returns
undefined
|
T
prepend
prepend
(
item
:
T
)
:
boolean
Parameters
item:
T
Returns
boolean
remove
remove
(
item
:
T
)
:
boolean
Parameters
item:
T
Returns
boolean
remove
Item
At
remove
Item
At
(
index
:
number
)
:
boolean
Parameters
index:
number
Returns
boolean
to
Array
to
Array
(
)
:
T
[]
Returns
T
[]
Modules
models/data-
structures/list/one-
directional-
linked-
list
One
Directional
Linked
List
constructor
first
local
Length
empty
length
[
Symbol.iterator]
add
append
clear
contains
for
Each
get
Holder
AtNot
Checked
get
Item
At
prepend
remove
remove
Item
At
to
Array
Generated using
TypeDoc
Array should have pointer to last item