Constructor
new ObservableKeySet(initialValue)
Create an observable version of a KeySet.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
initialValue |
KeySetImpl.<K> | AllKeySetImpl.<K> |
<optional> |
The KeySet to observe. |
Methods
-
add(keys) : {ObservableKeySet.<K>}
-
Updates the observable with a KeySet that includes the specified keys.
Parameters:
Name Type Description keysSet<K> | Array<K> a set of keys to add to this KeySet. Returns:
this observable KeySet.- Type
- ObservableKeySet.<K>
-
addAll : {ObservableKeySet.<K>}
-
Updates the observable with a KeySet that has all keys.
Returns:
this observable KeySet.- Type
- ObservableKeySet.<K>
-
clear : {ObservableKeySet.<K>}
-
Updates the observable with a KeySet that contains no keys.
Returns:
this observable KeySet.- Type
- ObservableKeySet.<K>
-
delete(keys) : {ObservableKeySet.<K>}
-
Updates the observable with a KeySet that excludes the specified keys.
Parameters:
Name Type Description keysSet<K> | Array<K> a set of keys to remove from this KeySet. Returns:
this observable KeySet.- Type
- ObservableKeySet.<K>