Adds the specified element to this set if not already present.
a promise to be resolved to true if this set did not contain the element.
Adds the elements in the array items
to this set if not already present.
At the end, the set contains all elements of items
array and its previous elements.
true if this set changed, false otherwise.
Adds an item listener for this set. Listener will be invoked for any add/remove item events.
true
if updated item should be included in the event.
Registration id of the listener.
Removes all of the elements from this set.
Checks whether this set contains the given element.
true if this set contains the given element, false otherwise.
Checks whether this set contains all elements of given array.
tru
e if this set contains all elements of given collection, false
otherwise.
Destroys this object cluster-wide. Clears all resources taken for this object.
Returns the unique name of this object.
Returns the key of the partition that this DistributedObject is assigned to.
For a partitioned data structure, the returned value will not be null
,
but otherwise undefined
.
Returns the service name for this object.
true if this set does n Checks if this set has any elements.ot have any elements, false otherwise.
Removes given entry from this set.
true if this set actually had given element, false otherwise.
Removes all elements of given array from this set.
true
if this set changed.
Removes an item listener for this set.
Registration id of the listener to be removed.
true
if the item listener is removed, false
otherwise.
Removes all elements from this set except the elements of given array.
true
if this set changed.
Returns the size of this set.
number of elements in this set.
Returns an array containing all of the elements in the set.
An array of items.
Generated using TypeDoc
Concurrent and distributed set.
Methods that require serialization/deserialization may throw RangeError, e.g when there is no suitable serializer for a certain type.