List of usage examples for org.apache.commons.collections.iterators ArrayIterator ArrayIterator
public ArrayIterator(final Object array, final int startIndex, final int endIndex)
From source file:org.apache.jackrabbit.spi.commons.iterator.Iterators.java
/** * Returns an iterator for elements of an array of <code>values</code>. * * @param <T>// w w w . j a v a2 s . c o m * @param values the array to iterate over. * @param from the index to start iterating at. * @param to the index to finish iterating at. * @return */ @SuppressWarnings("unchecked") public static <T> Iterator<T> arrayIterator(T[] values, int from, int to) { return new ArrayIterator(values, from, to); }