Package | Description |
---|---|
org.apache.commons.collections4 |
This package contains the interfaces and utilities shared across all the subpackages of this component.
|
Modifier and Type | Method and Description |
---|---|
static <E> BoundedIterator<E> |
IteratorUtils.boundedIterator(Iterator<? extends E> iterator,
long max)
Decorates the specified iterator to return at most the given number
of elements.
|
static <E> BoundedIterator<E> |
IteratorUtils.boundedIterator(Iterator<? extends E> iterator,
long offset,
long max)
Decorates the specified iterator to return at most the given number
of elements, skipping all elements until the iterator reaches the
position at
offset . |
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.