Class DropIterator<T>

  • All Implemented Interfaces:
    java.util.Iterator<T>

    @Deprecated
    public final class DropIterator<T>
    extends java.lang.Object
    implements java.util.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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Iterator<T> delegateIterator
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      DropIterator​(java.lang.Iterable<T> iterable, int count)
      Deprecated.
       
      DropIterator​(java.util.Iterator<T> iterator, int count)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Deprecated.
       
      T next()
      Deprecated.
       
      void remove()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • delegateIterator

        private final java.util.Iterator<T> delegateIterator
        Deprecated.
    • Constructor Detail

      • DropIterator

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

        public DropIterator​(java.util.Iterator<T> iterator,
                            int count)
        Deprecated.
    • Method Detail

      • hasNext

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

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

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