public class LimitIteration<E,X extends Exception> extends IterationWrapper<E,X>
wrappedIter
Constructor and Description |
---|
LimitIteration(Iteration<? extends E,X> iter,
long limit)
Creates a new LimitIteration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Checks whether the wrapped Iteration contains more elements, closing this Iteration when this is not the case.
|
E |
next()
Returns the next element from the wrapped Iteration.
|
handleClose, remove
close, isClosed
public boolean hasNext() throws X extends Exception
IterationWrapper
public E next() throws X extends Exception
IterationWrapper
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.