public class ReadOnlySet<E> extends Object implements Set<E>
Modifier and Type | Field and Description |
---|---|
protected Collection<?> |
coll |
protected TransactionIF |
txn |
Constructor and Description |
---|
ReadOnlySet(TransactionIF txn,
Collection<?> coll) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Spliterator<E> |
spliterator() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parallelStream, removeIf, stream
protected TransactionIF txn
protected final Collection<?> coll
public ReadOnlySet(TransactionIF txn, Collection<?> coll)
public void clear()
public boolean add(E o)
public boolean addAll(Collection<? extends E> c)
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface Set<E>
public Object[] toArray()
public <T> T[] toArray(T[] a)
public Spliterator<E> spliterator()
spliterator
in interface Iterable<E>
spliterator
in interface Collection<E>
spliterator
in interface Set<E>