|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javatools.datatypes.PeekIterator<T> javatools.datatypes.PeekIterator.SimplePeekIterator<T>
public static class PeekIterator.SimplePeekIterator<T>
A PeekIterator that can iterate over another iterator or over a list of elements
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javatools.datatypes.PeekIterator |
---|
PeekIterator.ElementaryPeekIterator<T>, PeekIterator.SimplePeekIterator<T> |
Field Summary | |
---|---|
java.util.Iterator<T> |
iterator
Wrapped iterator |
Fields inherited from class javatools.datatypes.PeekIterator |
---|
closed, initialized, next |
Constructor Summary | |
---|---|
PeekIterator.SimplePeekIterator(java.lang.Iterable<T> i)
Constructs a PeekIterator from an Iteratable (e.g. |
|
PeekIterator.SimplePeekIterator(java.util.Iterator<T> i)
Constructs a PeekIterator from another Iterator |
|
PeekIterator.SimplePeekIterator(T... elements)
Constructs a PeekIterator for a given list of elements |
|
PeekIterator.SimplePeekIterator(T element)
Constructs a PeekIterator for a given list of elements |
Method Summary | |
---|---|
void |
remove()
Removes the current element, if supported by the underlying iterator |
java.lang.String |
toString()
|
Methods inherited from class javatools.datatypes.PeekIterator |
---|
asList, asList, asSet, asSet, asSet, close, emptyIterator, hasNext, iterator, list, list, main, next, nextOrNull, numElements, numElements, peek, toString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.util.Iterator<T> iterator
Constructor Detail |
---|
public PeekIterator.SimplePeekIterator(java.util.Iterator<T> i)
public PeekIterator.SimplePeekIterator(java.lang.Iterable<T> i)
public PeekIterator.SimplePeekIterator(T... elements)
public PeekIterator.SimplePeekIterator(T element)
Method Detail |
---|
public void remove()
remove
in interface java.util.Iterator<T>
remove
in class PeekIterator<T>
public java.lang.String toString()
toString
in class PeekIterator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |