Package net.ontopia.persistence.proxy
Class ReadOnlySet<E>
java.lang.Object
net.ontopia.persistence.proxy.ReadOnlySet<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
INTERNAL: A set implementation that track the changes performed on
it. It keeps track of the objects that have been added and the ones
that has been removed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
txn
-
coll
-
-
Constructor Details
-
ReadOnlySet
-
-
Method Details
-
clear
public void clear() -
add
-
addAll
-
remove
-
removeAll
-
retainAll
-
size
public int size() -
isEmpty
public boolean isEmpty() -
iterator
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
spliterator
- Specified by:
spliteratorin interfaceCollection<E>- Specified by:
spliteratorin interfaceIterable<E>- Specified by:
spliteratorin interfaceSet<E>
-