public interface SetCodecTemplate
Modifier and Type | Method and Description |
---|---|
Object |
add(String name,
Data value)
Adds the specified element to this set if it is not already present (optional operation).
|
Object |
addAll(String name,
List<Data> valueList)
Adds all of the elements in the specified collection to this set if they're not already present
(optional operation).
|
Object |
addListener(String name,
boolean includeValue,
boolean localOnly)
Adds an item listener for this collection.
|
Object |
clear(String name)
Removes all of the elements from this set (optional operation).
|
Object |
compareAndRemoveAll(String name,
List<Data> values)
Removes from this set all of its elements that are contained in the specified collection (optional operation).
|
Object |
compareAndRetainAll(String name,
List<Data> values)
Retains only the elements in this set that are contained in the specified collection (optional operation).
|
Object |
contains(String name,
Data value)
Returns true if this set contains the specified element.
|
Object |
containsAll(String name,
List<Data> items)
Returns true if this set contains all of the elements of the specified collection.
|
Object |
getAll(String name)
Return the all elements of this collection
|
Object |
isEmpty(String name)
Returns true if this set contains no elements.
|
Object |
remove(String name,
Data value)
Removes the specified element from this set if it is present (optional operation).
|
Object |
removeListener(String name,
String registrationId)
Removes the specified item listener.
|
Object |
size(String name)
Returns the number of elements in this set (its cardinality).
|
Object size(String name)
name
- Name of the SetObject contains(String name, Data value)
name
- Name of the Setvalue
- Element whose presence in this set is to be testedObject containsAll(String name, List<Data> items)
name
- Name of the Setitems
- Collection to be checked for containment in this listObject add(String name, Data value)
name
- Name of the Setvalue
- Element to be added to this setObject remove(String name, Data value)
name
- Name of the Setvalue
- Object to be removed from this set, if presentObject addAll(String name, List<Data> valueList)
name
- Name of the SetvalueList
- Collection containing elements to be added to this setObject compareAndRemoveAll(String name, List<Data> values)
name
- Name of the Setvalues
- The list of values to test for matching the item to remove.Object compareAndRetainAll(String name, List<Data> values)
name
- Name of the Setvalues
- The list of values to test for matching the item to retain.Object clear(String name)
name
- Name of the SetObject getAll(String name)
name
- Name of the SetObject addListener(String name, boolean includeValue, boolean localOnly)
name
- Name of the SetincludeValue
- if set to true, the event shall also include the value.localOnly
- if true fires events that originated from this node only, otherwise fires all eventsObject removeListener(String name, String registrationId)
name
- Name of the SetregistrationId
- The id retrieved during registration.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.