E - element type.public class DefaultTransactionalSet<E> extends Object implements TransactionalSet<E>
| Constructor and Description |
|---|
DefaultTransactionalSet(String name,
TransactionContext txContext,
Serializer serializer) |
| 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).
|
public DefaultTransactionalSet(String name, TransactionContext txContext, Serializer serializer)
public boolean add(E e)
TransactionalSetadd in interface TransactionalSet<E>e - element to be added to this setpublic boolean remove(E e)
TransactionalSetremove in interface TransactionalSet<E>e - element to be removed to this setpublic boolean contains(E e)
TransactionalSetcontains in interface TransactionalSet<E>e - element whose presence in this set is to be tested