| Modifier | Constructor and Description |
|---|---|
protected |
Tuple2(L left,
R right) |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
asList()
|
protected void |
assertIndexInBounds(int index) |
boolean |
equals(Object o) |
L |
getItem1()
Gets the first item.
|
R |
getItem2()
Gets the second item.
|
int |
hashCode() |
<T> Tuple2<T,R> |
mapItem1(Function<L,T> mapper)
|
<T> Tuple2<L,T> |
mapItem2(Function<R,T> mapper)
|
Object |
nth(int index)
Get the item stored at the given index.
|
static <L,R> Tuple2<L,R> |
of(L l,
R r) |
int |
size() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static <L,R> Tuple2<L,R> of(L l, R r)
public L getItem1()
nullpublic R getItem2()
nullpublic Object nth(int index)
Tupleprotected void assertIndexInBounds(int index)
public int size()
Copyright © 2019–2020 SmallRye. All rights reserved.