|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.collections.iters.MappedIterator<X,Y>
X - Y - public class MappedIterator<X,Y>
Given an Iterator object and a function, yields an Iterator
representing the result of applying that function to every element of the supplied Iterator
| Constructor Summary | |
|---|---|
MappedIterator(java.util.Iterator<? extends X> base,
Function<? super X,? extends Y> function)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
Y |
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<? extends X> base,
Function<? super X,? extends Y> function)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<Y>public Y next()
next in interface java.util.Iterator<Y>public void remove()
remove in interface java.util.Iterator<Y>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||