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
Adds the specified element to this set if it is not already present (optional operation).
Returns true if this set contains the specified element.
Removes the specified element from this set if it is present (optional operation).
boolean add(E e)
e - element to be added to this set
boolean remove(E e)
e - element to be removed to this set
boolean contains(E e)
e - element whose presence in this set is to be tested
java.lang.ClassCastException - if the type of the specified element
is incompatible with this set
java.lang.NullPointerException - if the specified element is null and this
set does not permit null elements