kvision
Toggle table of contents
8.2.0
js
Platform filter
js
Switch theme
Search in API
kvision
kvision-state
/
io.kvision.state
/
ObservableSet
Observable
Set
interface
ObservableSet
<
T
>
:
MutableSet
<
T
>
,
ObservableState
<
Set
<
T
>
>
(
source
)
Observable set interface.
Inheritors
ObservableSetWrapper
Members
Members & Extensions
Properties
on
Update
Link copied to clipboard
abstract
val
onUpdate
:
MutableCollection
<
(
MutableSet
<
T
>
)
->
Unit
>
size
Link copied to clipboard
abstract
override
val
size
:
Int
Functions
add
Link copied to clipboard
abstract
override
fun
add
(
element
:
T
)
:
Boolean
add
All
Link copied to clipboard
abstract
override
fun
addAll
(
elements
:
Collection
<
T
>
)
:
Boolean
as
Js
Readonly
Set
View
Link copied to clipboard
open
fun
asJsReadonlySetView
(
)
:
JsReadonlySet
<
T
>
as
Js
Set
View
Link copied to clipboard
open
fun
asJsSetView
(
)
:
JsSet
<
T
>
clear
Link copied to clipboard
abstract
override
fun
clear
(
)
contains
Link copied to clipboard
abstract
operator override
fun
contains
(
element
:
T
)
:
Boolean
contains
All
Link copied to clipboard
abstract
override
fun
containsAll
(
elements
:
Collection
<
T
>
)
:
Boolean
get
State
Link copied to clipboard
abstract
fun
getState
(
)
:
Set
<
T
>
is
Empty
Link copied to clipboard
abstract
override
fun
isEmpty
(
)
:
Boolean
iterator
Link copied to clipboard
abstract
operator override
fun
iterator
(
)
:
MutableIterator
<
T
>
remove
Link copied to clipboard
abstract
override
fun
remove
(
element
:
T
)
:
Boolean
remove
All
Link copied to clipboard
abstract
override
fun
removeAll
(
elements
:
Collection
<
T
>
)
:
Boolean
retain
All
Link copied to clipboard
abstract
override
fun
retainAll
(
elements
:
Collection
<
T
>
)
:
Boolean
sub
Link copied to clipboard
fun
<
S
,
T
>
ObservableState
<
S
>
.
sub
(
contextWidget
:
Widget
?
=
null
,
extractor
:
(
S
)
->
T
)
:
ObservableState
<
T
>
Returns a sub-store of the original ObservableState
subscribe
Link copied to clipboard
abstract
fun
subscribe
(
observer
:
(
Set
<
T
>
)
->
Unit
)
:
(
)
->
Unit