public abstract class LimitAdjustingIterator<R> extends Object implements Iterator<R>
Constructor and Description |
---|
LimitAdjustingIterator(int maxLimit,
int currentLimit)
Initializes this iterator with the current limit and the maximum number of elements that may be retrieved from the
wrapped iterator.
|
Modifier and Type | Method and Description |
---|---|
abstract Iterator<R> |
getNewIterator(int newLimit)
This returns the wrapped iterator with up to the specified number of elements.
|
boolean |
hasNext() |
R |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public LimitAdjustingIterator(int maxLimit, int currentLimit)
maxLimit
- currentLimit
- Copyright © 2012–2015. All rights reserved.