Package cz.cvut.kbss.jopa.proxy.change
Class ChangeTrackingIndirectSet<E>
java.lang.Object
cz.cvut.kbss.jopa.proxy.change.ChangeTrackingIndirectCollection<Set<E>>
cz.cvut.kbss.jopa.proxy.change.ChangeTrackingIndirectSet<E>
- All Implemented Interfaces:
IndirectWrapper<Set<E>>
,Iterable<E>
,Collection<E>
,Set<E>
public class ChangeTrackingIndirectSet<E>
extends ChangeTrackingIndirectCollection<Set<E>>
implements Set<E>
-
Field Summary
Fields inherited from class cz.cvut.kbss.jopa.proxy.change.ChangeTrackingIndirectCollection
field, owner, persistenceContext
-
Constructor Summary
ConstructorsConstructorDescriptionChangeTrackingIndirectSet
(Object owner, Field f, UnitOfWork uow, Set<E> referencedSet) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) toString()
unwrap()
Retrieves the wrapped object.Methods inherited from class cz.cvut.kbss.jopa.proxy.change.ChangeTrackingIndirectCollection
persistChange
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
ChangeTrackingIndirectSet
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceSet<E>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
unwrap
Description copied from interface:IndirectWrapper
Retrieves the wrapped object.- Specified by:
unwrap
in interfaceIndirectWrapper<E>
- Returns:
- The wrapped object
-
equals
-
hashCode
public int hashCode() -
toString
-