Class ArrayIterator<E>

java.lang.Object
org.basex.util.ArrayIterator<E>
Type Parameters:
E - generic object type
All Implemented Interfaces:
Iterable<E>, Iterator<E>

public final class ArrayIterator<E> extends Object implements Iterator<E>, Iterable<E>
This class is used to iterate through objects of an array.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • ArrayIterator

      public ArrayIterator(Object[] array, int end)
      Constructor.
      Parameters:
      array - array to iterate through
      end - index + 1 of last object to return
    • ArrayIterator

      public ArrayIterator(Object[] array, int start, int end)
      Constructor.
      Parameters:
      array - array to iterate through
      start - index of first object to return
      end - index + 1 of last object to return
  • Method Details