Package net.ontopia.persistence.proxy
Class IdentityCollectionWrapper<E>
java.lang.Object
net.ontopia.persistence.proxy.IdentityCollectionWrapper<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>
INTERNAL: A set implementation that wraps an identity collection
and presents the underlying collection as if it had PersistentIF
instances inside. All identity lookup is done lazily, and no state
is stored by this instance except for the current TransactionIF and
the wrapped identities collection.
-
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) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
txn
-
other
-
-
Constructor Details
-
IdentityCollectionWrapper
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>
-
add
- Specified by:
addin interfaceCollection<E>
-
addAll
- Specified by:
addAllin interfaceCollection<E>
-
remove
- Specified by:
removein interfaceCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>
-
size
public int size()- Specified by:
sizein interfaceCollection<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>
-
contains
- Specified by:
containsin interfaceCollection<E>
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>
-
toArray
- Specified by:
toArrayin interfaceCollection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<E>
-
toString
-
iterator
-