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, removeclose, isClosedpublic boolean hasNext()
throws X extends Exception
IterationWrapperpublic E next() throws X extends Exception
IterationWrapperCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.