Class SkipIterator<T>

java.lang.Object
com.adobe.granite.security.user.util.SkipIterator<T>
All Implemented Interfaces:
Iterator<T>

public class SkipIterator<T> extends Object implements Iterator<T>
  • Constructor Details

    • SkipIterator

      public SkipIterator(Iterator<T> iterator)
  • Method Details

    • create

      public static <T> SkipIterator<T> create(Iterator<T> iterator)
    • skip

      public long skip(long skipNum)
      Attempts to skip a number of elements
      Parameters:
      skipNum - number of elements to skip
      Returns:
      long value with the number of elements that were actually skipped
    • getPosition

      public long getPosition()
    • hasNext

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

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

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