Preparing search index...
The search index is not available
data-structure-typed
data-structure-typed
ObjectDeque
Class ObjectDeque<T>
Type Parameters
T
Hierarchy
ObjectDeque
Index
Constructors
constructor
Properties
_capacity
_first
_last
_nodes
_size
Methods
get
is
Empty
offer
First
offer
Last
peek
First
peek
Last
poll
First
poll
Last
size
Constructors
constructor
new
Object
Deque
<
T
>
(
capacity
?
)
:
ObjectDeque
<
T
>
Type Parameters
T
Parameters
Optional
capacity
:
number
Returns
ObjectDeque
<
T
>
Properties
Protected
_capacity
_capacity
:
number
= Number.MAX_SAFE_INTEGER
Protected
_first
_first
:
number
= -1
Protected
_last
_last
:
number
= -1
Protected
_nodes
_nodes
:
{
[
key
:
number
]
:
T
;
}
= {}
Type declaration
[
key
:
number
]:
T
Protected
_size
_size
:
number
= 0
Methods
get
get
(
index
)
:
null
|
NonNullable
<
T
>
Parameters
index
:
number
Returns
null
|
NonNullable
<
T
>
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
offer
First
offer
First
(
value
)
:
void
Parameters
value
:
T
Returns
void
offer
Last
offer
Last
(
value
)
:
void
Parameters
value
:
T
Returns
void
peek
First
peek
First
(
)
:
undefined
|
T
Returns
undefined
|
T
peek
Last
peek
Last
(
)
:
undefined
|
T
Returns
undefined
|
T
poll
First
poll
First
(
)
:
undefined
|
T
Returns
undefined
|
T
poll
Last
poll
Last
(
)
:
undefined
|
T
Returns
undefined
|
T
size
size
(
)
:
number
Returns
number
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_capacity
_first
_last
_nodes
_size
get
is
Empty
offer
First
offer
Last
peek
First
peek
Last
poll
First
poll
Last
size
data-
structure-
typed
CP
Family
Position
Loop
Type
AVLTree
AVLTree
Node
Aa
Tree
Abstract
Edge
Abstract
Graph
Abstract
Vertex
Array
Deque
BST
BSTNode
BTree
Binary
Indexed
Tree
Binary
Tree
Binary
Tree
Node
Character
Coordinate
Map
Coordinate
Set
Deque
Directed
Edge
Directed
Graph
Directed
Vertex
Doubly
Linked
List
Doubly
Linked
List
Node
Heap
Matrix2D
MatrixNTI2D
Max
Heap
Max
Priority
Queue
Min
Heap
Min
Priority
Queue
Navigator
Object
Deque
Priority
Queue
Queue
RBTree
Segment
Tree
Segment
Tree
Node
Singly
Linked
List
Singly
Linked
List
Node
Splay
Tree
Stack
Tree
Multi
Set
Trie
Trie
Node
Two
Three
Tree
Undirected
Edge
Undirected
Graph
Undirected
Vertex
Vector2D
Generated using
TypeDoc