| Constructor and Description |
|---|
MapIterator(Iterator<? extends X> i,
Function<X,Y> f) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
static <X,Y> Set<Y> |
map(Function<X,Y> f,
Collection<X> i) |
static <X,Y> Iterator<Y> |
map(Function<X,Y> f,
Iterator<X> i) |
Y |
next() |
void |
remove() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingpublic void remove()
throws UnsupportedOperationException
remove in interface Iterator<Y>UnsupportedOperationExceptionpublic static <X,Y> Set<Y> map(Function<X,Y> f, Collection<X> i)