Class LimitIteration<E>

java.lang.Object
All Implemented Interfaces:
AutoCloseable, Iterator<E>, CloseableIteration<E>

public class LimitIteration<E> extends IterationWrapper<E>
An Iteration that limits the amount of elements that it returns from an underlying Iteration to a fixed amount. This class returns the first limit elements from the underlying Iteration and drops the rest.