Iterator<T>public class BoundedIterator<T> extends Object implements Iterator<T>
BoundedIterator decorates an Iterator to limit its
element to a maximum number.| Constructor | Description |
|---|---|
BoundedIterator(Iterator<T> aIterator,
int aLengthBounds) |
Decorates the given
Iterator with the given length bounds. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
|
T |
next() |
forEachRemaining, removeCopyright © 2021. All rights reserved.