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,
                   Set<Data> valueSet)Removes from this set all of its elements that are contained in the specified collection (optional operation). | 
| Object | compareAndRetainAll(String name,
                   Set<Data> valueSet)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,
           Set<Data> valueSet)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, Set<Data> valueSet)
name - Name of the SetvalueSet - Collection to be checked for containment in this setObject 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, Set<Data> valueSet)
name - Name of the SetvalueSet - The set of values to test for matching the item to remove.Object compareAndRetainAll(String name, Set<Data> valueSet)
name - Name of the SetvalueSet - The set 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 © 2015 Hazelcast, Inc.. All Rights Reserved.