| Constructor and Description |
|---|
BoundedIterator(long offset,
long max,
Iterator<T> iterator)
Create a new bounded iterator with a given offset and maximum
|
public BoundedIterator(long offset,
long max,
Iterator<T> iterator)
offset - offset to start iteration at. Must be non negativemax - maximum elements this iterator should return. Set to -1 for alliterator - the underlying iteratorIllegalArgumentException - if offset is negativepublic static <T> Iterator<T> create(long offset, long max, Iterator<T> iterator)
T - element typeoffset - offset to start iteration at. Must be non negativemax - maximum elements this iterator should return. Set to -1 for alliterator - the underlying iteratorBoundedIterator(long, long, java.util.Iterator)Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.