IN1
- the type of the elements inside the argument listOUT
- the output type of the functionpublic class MapList<IN1,OUT> extends AbstractImmutableList<OUT> implements ImmutableList<OUT>
Constructor and Description |
---|
MapList(Function<IN1,OUT> f,
ImmutableList<IN1> list1)
creates a list [f(a1), f(a2) ,.
|
Modifier and Type | Method and Description |
---|---|
OUT |
get(java.math.BigInteger index)
Returns the element at the specified position in this list.
|
java.math.BigInteger |
size() |
get, iterator, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get
public MapList(Function<IN1,OUT> f, ImmutableList<IN1> list1)
f
- functionlist1
- a list of items [a1,a2,..., an]public OUT get(java.math.BigInteger index)
ImmutableList
get
in interface ImmutableList<OUT>
index
- index of the element to returnpublic java.math.BigInteger size()
size
in interface ImmutableList<OUT>