|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.util.MappedIterator<F,T>
F - Type of object within base IteratorT - Type of object returned from this Iteratorpublic class MappedIterator<F,T>
| Constructor Summary | |
|---|---|
MappedIterator(java.util.Iterator<F> base,
Function<F,T> f)
Create a new MappedIterator that runs a function on each member of an iterator before it is retrieved in order to convert from one type to another |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappedIterator(java.util.Iterator<F> base,
Function<F,T> f)
base - Iterator to wrapf - Function to run on iterator values before they are returned| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<T>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 | |||||||||