E - type of element.public interface TransactionalSet<E>
A TransactionalSet is implemented with the help of TransactionalMap data structure. All operations performed on this set within a transaction boundary are invisible externally until the point when the transaction commits. A commit usually succeeds in the absence of conflicts.
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
add(E e)
Adds the specified element to this set if it is not already present
 (optional operation). 
 | 
boolean | 
contains(E e)
Returns true if this set contains the specified element. 
 | 
boolean | 
remove(E e)
Removes the specified element from this set if it is present
 (optional operation). 
 | 
boolean add(E e)
e - element to be added to this setboolean remove(E e)
e - element to be removed to this setboolean contains(E e)
e - element whose presence in this set is to be testedClassCastException - if the type of the specified element
         is incompatible with this setNullPointerException - if the specified element is null and this
         set does not permit null elements