# Uses of Class
org.apache.commons.collections4.iterators.BoundedIterator

Packages that use BoundedIterator
Package
Description
org.apache.commons.collections4
Interfaces and utilities shared across all packages.

- ## Uses of BoundedIterator in org.apache.commons.collections4

  Methods in org.apache.commons.collections4 that return BoundedIterator
  Modifier and Type
  Method
  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`.