Class DropIterator<T>

java.lang.Object
org.eclipse.collections.impl.lazy.iterator.DropIterator<T>
All Implemented Interfaces:
Iterator<T>

@Deprecated public final class DropIterator<T> extends Object implements Iterator<T>
Deprecated.
in 8.0. Use SelectIterator(Iterable, Predicate) with DropIterablePredicate(int) as a predicate instead.
Iterates over the elements of the iterator skipping the first count elements or the full iterator if the count is non-positive.
  • Constructor Details

    • DropIterator

      public DropIterator(Iterable<T> iterable, int count)
      Deprecated.
    • DropIterator

      public DropIterator(Iterator<T> iterator, int count)
      Deprecated.
  • Method Details

    • hasNext

      public boolean hasNext()
      Deprecated.
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Deprecated.
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Deprecated.
      Specified by:
      remove in interface Iterator<T>