Class BoundedIterator<T>
java.lang.Object
org.refcodes.struct.BoundedIterator<T>
- All Implemented Interfaces:
Iterator<T>
The
BoundedIterator decorates an Iterator to limit its
element to a maximum number.-
Constructor Summary
ConstructorsConstructorDescriptionBoundedIterator(Iterator<T> aIterator, int aLengthBounds) Decorates the givenIteratorwith the given length bounds. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, remove
-
Constructor Details
-
BoundedIterator
-
-
Method Details
-
hasNext
-
next
-