public class MappedCollection<U,V> extends AbstractCollection<U>
| Constructor and Description |
|---|
MappedCollection(Collection<V> list,
Function<V,U> mapper) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<U> |
iterator() |
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic MappedCollection(Collection<V> list, Function<V,U> mapper)
public Iterator<U> iterator()
iterator in interface Iterable<U>iterator in interface Collection<U>iterator in class AbstractCollection<U>public int size()
size in interface Collection<U>size in class AbstractCollection<U>Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.