Class SkipIterator<T>
- java.lang.Object
-
- com.adobe.granite.security.user.util.SkipIterator<T>
-
-
Constructor Summary
Constructors Constructor Description SkipIterator(Iterator<T> iterator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> SkipIterator<T>
create(Iterator<T> iterator)
long
getPosition()
boolean
hasNext()
T
next()
void
remove()
long
skip(long skipNum)
Attempts to skip a number of elements-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
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()
-
-