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:
Iterable<E>, ListIterable<E>
Direct Known Subclasses:
SnapshotCloneListIterable

public abstract class CloneListIterable<E> extends Object implements ListIterable<E>
Pull together mutator state and behavior for subclasses.
See Also:
  • Constructor Details

    • CloneListIterable

      protected CloneListIterable()
    • CloneListIterable

      protected CloneListIterable(CloneListIterator.Mutator<E> mutator)
  • Method Details

    • 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.