X
- Type of source itemY
- Type of target itempublic final class Mapped<X,Y> extends CollectionEnvelope<T>
There is no thread-safety guarantee.
Constructor and Description |
---|
Mapped(Func<X,Y> fnc,
Collection<X> src)
Ctor.
|
Mapped(Func<X,Y> fnc,
Iterable<X> src)
Ctor.
|
Mapped(Func<X,Y> fnc,
Iterator<X> src)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
addAll(int index,
Collection<? extends T> items) |
T |
get(int index) |
int |
indexOf(Object item) |
int |
lastIndexOf(Object item) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
T |
set(int index,
T element) |
List<T> |
subList(int start,
int end) |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public Mapped(Func<X,Y> fnc, Iterator<X> src)
src
- Source listfnc
- Funcpublic Mapped(Func<X,Y> fnc, Collection<X> src)
src
- Source listfnc
- Funcpublic final boolean addAll(int index, Collection<? extends T> items)
public final int lastIndexOf(Object item)
lastIndexOf
in interface List<T>
public final ListIterator<T> listIterator()
listIterator
in interface List<T>
public final ListIterator<T> listIterator(int index)
listIterator
in interface List<T>
Copyright © 2017 Cactoos. All rights reserved.