|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openjena.atlas.iterator.PeekIterator<T>
public class PeekIterator<T>
PeekIterator - is one slot ahead from the wrapped iterator
| Constructor Summary | |
|---|---|
PeekIterator(java.util.Iterator<T> iter)
|
|
| Method Summary | ||
|---|---|---|
static
|
create(java.util.Iterator<T> iter)
|
|
static
|
create(PeekIterator<T> iter)
|
|
boolean |
hasNext()
|
|
T |
next()
|
|
T |
peek()
Peek the next element or throw NoSuchElementException |
|
T |
peekOrNull()
Peek the next element or return null |
|
void |
remove()
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PeekIterator(java.util.Iterator<T> iter)
| Method Detail |
|---|
public static <T> PeekIterator<T> create(PeekIterator<T> iter)
public static <T> PeekIterator<T> create(java.util.Iterator<T> iter)
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public T peek()
public T peekOrNull()
public T next()
next in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||