Class SkipIterator<T>
- java.lang.Object
-
- com.adobe.granite.security.user.util.SkipIterator<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>
public class SkipIterator<T> extends java.lang.Object implements java.util.Iterator<T>
-
-
Constructor Summary
Constructors Constructor Description SkipIterator(java.util.Iterator<T> iterator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> SkipIterator<T>
create(java.util.Iterator<T> iterator)
long
getPosition()
boolean
hasNext()
T
next()
void
remove()
long
skip(long skipNum)
Attempts to skip a number of elements
-
-
-
Constructor Detail
-
SkipIterator
public SkipIterator(java.util.Iterator<T> iterator)
-
-
Method Detail
-
create
public static <T> SkipIterator<T> create(java.util.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 interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T>
-
-