info.aduna.collections.iterators
Class OffsetIterator<E>
java.lang.Object
info.aduna.iteration.CloseableIterationBase<E,X>
info.aduna.iteration.IterationWrapper<E,X>
info.aduna.iteration.FilterIteration<E,X>
info.aduna.iteration.OffsetIteration<E,RuntimeException>
info.aduna.collections.iterators.OffsetIterator<E>
- All Implemented Interfaces:
- CloseableIterator<E>, CloseableIteration<E,RuntimeException>, Iteration<E,RuntimeException>, Closeable, Iterator<E>
public class OffsetIterator<E>
- extends OffsetIteration<E,RuntimeException>
- implements CloseableIterator<E>
An iterator that skips the first offset elements from an
underlying iterator.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OffsetIterator
public OffsetIterator(Iterator<E> iter,
int offset)
- Creates a new OffsetIterator.
- Parameters:
iter - The underlying iterator, must not be null.offset - The number of elements to skip, must be larger than or equal to 0.
Copyright © 1997-2008 Aduna. All Rights Reserved.