Class ArrayAdapter.ObjectArrayIterator<E>

java.lang.Object
org.datanucleus.store.types.containers.ArrayAdapter.ObjectArrayIterator<E>
All Implemented Interfaces:
Iterator<E>
Enclosing class:
ArrayAdapter<C>

private final class ArrayAdapter.ObjectArrayIterator<E> extends Object implements Iterator<E>
Based on Apache Collections 3.2 implementation. Specific implementation for Object arrays which will perform better.
  • Field Details

    • array

      protected E[] array
    • endIndex

      protected int endIndex
      The end index to loop to
    • index

      protected int index
      The current iterator index
  • Constructor Details

    • ObjectArrayIterator

      public ObjectArrayIterator(E[] array)
      Constructs an ObjectArrayIterator that will iterate over the values in the specified array.
      Parameters:
      array - the array to iterate over
      Throws:
      NullPointerException - if array is null
  • Method Details