public class IndexedElement<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
IndexedElement.Mapper<E,R> |
| Constructor and Description |
|---|
IndexedElement(int index,
T value) |
| Modifier and Type | Method and Description |
|---|---|
int |
index() |
<R> IndexedElement<R> |
map(IndexedElement.Mapper<? super T,? extends R> mapper) |
T |
value() |
public IndexedElement(int index,
T value)
public int index()
public T value()
public <R> IndexedElement<R> map(IndexedElement.Mapper<? super T,? extends R> mapper)