Class LimitedIterator<T>

All Implemented Interfaces:
Iterator<T>

public class LimitedIterator<T> extends AbstractFilteredIterator<T>
Since:
3.3
Author:
Eike Stepper
  • Constructor Details

    • LimitedIterator

      public LimitedIterator(Iterator<T> delegate, int limit)
  • Method Details

    • getLimit

      public final int getLimit()
    • getCount

      public final int getCount()
    • isValid

      protected boolean isValid(T element)
      Specified by:
      isValid in class AbstractFilteredIterator<T>