public abstract class AbstractTxnCollection<E> extends java.lang.Object implements TxnCollection<E>
| Modifier and Type | Field and Description |
|---|---|
protected TxnRefFactory |
defaultRefFactory |
protected Stm |
stm |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTxnCollection(Stm stm) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E item) |
boolean |
addAll(java.util.Collection<? extends E> c) |
boolean |
addAll(TxnCollection<? extends E> c)
Adds all of the elements in the specified collection to this collection
(optional operation).
|
boolean |
addAll(Txn tx,
java.util.Collection<? extends E> c)
Adds all of the elements in the specified collection to this collection
(optional operation).
|
boolean |
addAll(Txn tx,
TxnCollection<? extends E> c)
Adds all of the elements in the specified collection to this collection
(optional operation).
|
void |
clear() |
boolean |
contains(java.lang.Object item) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
containsAll(Txn tx,
java.util.Collection<?> c)
Returns true if this collection contains all of the elements
in the specified collection.
|
Stm |
getStm()
Returns the STM that manages this TxnCollection.
|
boolean |
isEmpty() |
boolean |
isEmpty(Txn tx)
Returns true if this collection contains no elements.
|
TxnIterator<E> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, clear, contains, remove, size, toStringiteratorprotected final Stm stm
protected final TxnRefFactory defaultRefFactory
protected AbstractTxnCollection(Stm stm)
public Stm getStm()
TxnCollectiongetStm in interface TxnCollection<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>public boolean isEmpty(Txn tx)
TxnCollectionisEmpty in interface TxnCollection<E>tx - the transaction used for this operation.public int size()
size in interface java.util.Collection<E>public void clear()
clear in interface java.util.Collection<E>public boolean contains(java.lang.Object item)
contains in interface java.util.Collection<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E>public boolean containsAll(Txn tx, java.util.Collection<?> c)
TxnCollectioncontainsAll in interface TxnCollection<E>tx - the transaction used for this operation.c - collection to be checked for containment in this collectionCollection.contains(Object)public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>public boolean addAll(Txn tx, java.util.Collection<? extends E> c)
TxnCollectionaddAll in interface TxnCollection<E>tx - the transaction used for this operation.c - collection containing elements to be added to this collectionCollection.add(Object)public boolean addAll(TxnCollection<? extends E> c)
TxnCollectionaddAll in interface TxnCollection<E>c - collection containing elements to be added to this collectionCollection.add(Object)public boolean addAll(Txn tx, TxnCollection<? extends E> c)
TxnCollectionaddAll in interface TxnCollection<E>c - collection containing elements to be added to this collectionCollection.add(Object)public TxnIterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface TxnIterable<E>public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>