info.aduna.iteration
Class OffsetIteration<E,X extends Exception>
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,X>
- All Implemented Interfaces:
- CloseableIteration<E,X>, Iteration<E,X>
- Direct Known Subclasses:
- OffsetIterator
public class OffsetIteration<E,X extends Exception>
- extends FilterIteration<E,X>
An Iteration that skips the first offset elements from an
underlying Iteration.
|
Method Summary |
protected boolean |
accept(E object)
Returns false for the first OFFSET objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OffsetIteration
public OffsetIteration(Iteration<? extends E,X> iter,
int offset)
- Creates a new OffsetIteration.
- Parameters:
iter - The underlying Iteration, must not be null.offset - The number of elements to skip, must be larger than or equal to 0.
accept
protected boolean accept(E object)
- Returns false for the first OFFSET objects.
- Specified by:
accept in class FilterIteration<E,X extends Exception>
- Parameters:
object - The object to be tested.
- Returns:
- true if the object should be returned, false
otherwise.
Copyright © 1997-2008 Aduna. All Rights Reserved.