Preparing search index...
The search index is not available
Ylide SDK
Ylide SDK
ListStorage
Class ListStorage<T>
Type Parameters
T
Hierarchy
ListStorage
Index
Constructors
constructor
Properties
cache?
comparator
name
read
To
Bottom
segments
Methods
_put
_save
drop
To
Cache
get
Pos
load
log
put
Objects
put
Objects
Segments
to
Complex
Segment
to
Segment
validate
Desc
Constructors
constructor
new
List
Storage
<
T
>
(
name
:
string
, comparator
:
AscComparator
<
T
>
, cache
?:
ListCache
<
T
>
)
:
ListStorage
<
T
>
Type Parameters
T
Parameters
name:
string
comparator:
AscComparator
<
T
>
Optional
cache:
ListCache
<
T
>
Returns
ListStorage
<
T
>
Properties
Optional
Readonly
cache
cache
?:
ListCache
<
T
>
Readonly
comparator
comparator
:
AscComparator
<
T
>
Private
name
name
:
string
read
To
Bottom
read
To
Bottom
:
boolean
= false
Readonly
segments
segments
:
ExtendedDoublyLinkedList
<
T
>
[]
= []
Methods
Private
_put
_put
(
descSortedConnectedValues
:
T
[]
)
:
void
Parameters
descSortedConnectedValues:
T
[]
Returns
void
Private
_save
_save
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
drop
To
Cache
drop
To
Cache
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Private
get
Pos
get
Pos
(
msg
:
T
, since
?:
null
|
SegmentEndPosition
<
T
>
)
:
SegmentEndPosition
<
T
>
Parameters
msg:
T
since:
null
|
SegmentEndPosition
<
T
>
= null
Returns
SegmentEndPosition
<
T
>
load
load
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Private
log
log
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
put
Objects
put
Objects
(
descSortedConnectedValues
:
T
[]
, dropToCache
?:
boolean
)
:
Promise
<
void
>
Parameters
descSortedConnectedValues:
T
[]
dropToCache:
boolean
= true
Returns
Promise
<
void
>
put
Objects
Segments
put
Objects
Segments
(
descSortedConnectedValuesSegments
:
T
[]
[]
, dropToCache
?:
boolean
)
:
Promise
<
void
>
Parameters
descSortedConnectedValuesSegments:
T
[]
[]
dropToCache:
boolean
= true
Returns
Promise
<
void
>
Private
to
Complex
Segment
to
Complex
Segment
(
arr
:
T
[]
, sourceSegments
:
ExtendedDoublyLinkedList
<
T
>
[]
)
:
ExtendedDoublyLinkedList
<
T
>
Parameters
arr:
T
[]
sourceSegments:
ExtendedDoublyLinkedList
<
T
>
[]
Returns
ExtendedDoublyLinkedList
<
T
>
Private
to
Segment
to
Segment
(
arr
:
T
[]
)
:
ExtendedDoublyLinkedList
<
T
>
Parameters
arr:
T
[]
Returns
ExtendedDoublyLinkedList
<
T
>
Private
validate
Desc
validate
Desc
(
vals
:
T
[]
)
:
void
Parameters
vals:
T
[]
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Ylide SDK
List
Storage
constructor
cache?
comparator
name
read
To
Bottom
segments
_put
_save
drop
To
Cache
get
Pos
load
log
put
Objects
put
Objects
Segments
to
Complex
Segment
to
Segment
validate
Desc
Generated using
TypeDoc