Class CloneListIterable<E>
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.utility.iterable.CloneListIterable<E>
-
- Type Parameters:
E
- the type of elements returned by the list iterable's list iterator
- All Implemented Interfaces:
java.lang.Iterable<E>
,ListIterable<E>
- Direct Known Subclasses:
SnapshotCloneListIterable
public abstract class CloneListIterable<E> extends java.lang.Object implements ListIterable<E>
Pull together mutator state and behavior for subclasses.- See Also:
- LiveCloneListIterable, SnapshotCloneListIterable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
CloneListIterable.DefaultMutator
-
Constructor Summary
Constructors Modifier Constructor Description protected
CloneListIterable()
protected
CloneListIterable(CloneListIterator.Mutator<E> mutator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
add(int index, E element)
At the specified index, add the specified element to the original list.protected CloneListIterator.Mutator<E>
buildDefaultMutator()
protected void
remove(int index)
Remove the element at the specified index from the original list.protected void
set(int index, E element)
At the specified index, set the specified element in the original list.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.jpa.jpql.utility.iterable.ListIterable
iterator
-
-
-
-
Constructor Detail
-
CloneListIterable
protected CloneListIterable()
-
CloneListIterable
protected CloneListIterable(CloneListIterator.Mutator<E> mutator)
-
-
Method Detail
-
buildDefaultMutator
protected CloneListIterator.Mutator<E> buildDefaultMutator()
-
add
protected void add(int index, E element)
At the specified index, add the specified element to the original list.This method can be overridden by a subclass as an alternative to building a
CloneListIterator.Mutator
.
-
remove
protected void remove(int index)
Remove the element at the specified index from the original list.This method can be overridden by a subclass as an alternative to building a
CloneListIterator.Mutator
.
-
set
protected void set(int index, E element)
At the specified index, set the specified element in the original list.This method can be overridden by a subclass as an alternative to building a
CloneListIterator.Mutator
.
-
-