public final class LazyHashSet<E> extends Object implements LazyCollection<E>, Set<E>
| Constructor and Description |
|---|
LazyHashSet(TransactionContext tx,
ClassMolder molder,
List<Identity> ids)
Creates an instance of LazyHashSet.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E entity) |
boolean |
addAll(Collection<? extends E> collection) |
void |
clear() |
void |
committed(TransactionContext tx)
Called at the end of a transaction after commit.
|
boolean |
contains(Object entity) |
boolean |
containsAll(Collection<?> collection) |
boolean |
equals(Object o) |
List<E> |
getAddedEntitiesList() |
List<Identity> |
getIdsList() |
List<Identity> |
getRemovedIdsList() |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object entity) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
void |
rolledback(TransactionContext tx)
Called at the end of a transaction after rollback.
|
int |
size() |
Object[] |
toArray() |
<A> A[] |
toArray(A[] array) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitspliteratorparallelStream, removeIf, streampublic LazyHashSet(TransactionContext tx, ClassMolder molder, List<Identity> ids)
tx - Current transaction contextmolder - Associated ClassMolderids - Set of identifiers.public boolean add(E entity)
public boolean addAll(Collection<? extends E> collection)
public void clear()
public boolean contains(Object entity)
public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>containsAll in interface Set<E>public boolean isEmpty()
public boolean remove(Object entity)
public boolean removeAll(Collection<?> collection)
public boolean retainAll(Collection<?> collection)
public int size()
public Object[] toArray()
public <A> A[] toArray(A[] array)
public boolean equals(Object o)
public int hashCode()
public List<Identity> getIdsList()
getIdsList in interface LazyCollection<E>public List<Identity> getRemovedIdsList()
getRemovedIdsList in interface LazyCollection<E>public List<E> getAddedEntitiesList()
getAddedEntitiesList in interface LazyCollection<E>public void committed(TransactionContext tx)
TxSynchronizablecommitted in interface TxSynchronizablepublic void rolledback(TransactionContext tx)
TxSynchronizablerolledback in interface TxSynchronizableCopyright © 2014. All rights reserved.