OUT - output type of function and element type of resulting listIN1 - fype of first input parameter of function and of elements in first
listIN2 - type of second input parameter of function and of elements in
second listpublic class MapThreadList<OUT,IN1,IN2> extends AbstractImmutableList<OUT>
| Constructor and Description |
|---|
MapThreadList(Function2<IN1,IN2,OUT> f,
ImmutableList<IN1> list1,
ImmutableList<IN2> list2)
creates a list [f(a1,b1), f(a2, b2) ,.
|
| 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, toStringpublic MapThreadList(Function2<IN1,IN2,OUT> f, ImmutableList<IN1> list1, ImmutableList<IN2> list2)
f - functionlist1 - a list of items [a1,a2,..., an]list2 - a list of items [b1, b2,...,bn] of same length as list1public OUT get(java.math.BigInteger index)
ImmutableListindex - index of the element to returnpublic java.math.BigInteger size()