Package cz.cvut.kbss.jopa.proxy.change
Class ChangeTrackingIndirectList<E>
java.lang.Object
cz.cvut.kbss.jopa.proxy.change.ChangeTrackingIndirectCollection<List<E>>
cz.cvut.kbss.jopa.proxy.change.ChangeTrackingIndirectList<E>
- All Implemented Interfaces:
IndirectWrapper<List<E>>
,Iterable<E>
,Collection<E>
,List<E>
public class ChangeTrackingIndirectList<E>
extends ChangeTrackingIndirectCollection<List<E>>
implements List<E>
-
Field Summary
Fields inherited from class cz.cvut.kbss.jopa.proxy.change.ChangeTrackingIndirectCollection
field, owner, persistenceContext
-
Constructor Summary
ConstructorsConstructorDescriptionChangeTrackingIndirectList
(Object owner, Field f, UnitOfWork uow, List<E> referencedList) Create new indirect list backed by the specified referenced list. -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends E> c) boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> arg0) boolean
get
(int arg0) int
hashCode()
int
boolean
isEmpty()
iterator()
int
lastIndexOf
(Object arg0) listIterator
(int arg0) remove
(int arg0) boolean
boolean
removeAll
(Collection<?> arg0) boolean
retainAll
(Collection<?> arg0) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<T> T[]
toArray
(T[] arg0) 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.List
replaceAll, sort, spliterator
-
Constructor Details
-
ChangeTrackingIndirectList
Create new indirect list backed by the specified referenced list.- Parameters:
owner
- Owner of the listf
- The field holding this listuow
- Persistence context the owner belongs toreferencedList
- The list to reference- Throws:
NullPointerException
- If thereferencedList
is null
-
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
-
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] arg0) -
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
-