public class SkipIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Constructor and Description |
|---|
SkipIterator(java.util.Iterator<T> iterator) |
| Modifier and Type | Method and 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
|
public SkipIterator(java.util.Iterator<T> iterator)
public static <T> SkipIterator<T> create(java.util.Iterator<T> iterator)
public long skip(long skipNum)
skipNum - number of elements to skippublic long getPosition()
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>Copyright © 2010 - 2023 Adobe. All Rights Reserved