org.elasticsearch.common.collect
Class Tuple<V1,V2>
java.lang.Object
org.elasticsearch.common.collect.Tuple<V1,V2>
public class Tuple<V1,V2>
- extends java.lang.Object
Method Summary |
static
|
create(V1 v1,
V2 v2)
Helper function to create a tuple. |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
static
|
tuple(V1 v1,
V2 v2)
|
V1 |
v1()
|
V2 |
v2()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Tuple
public Tuple(V1 v1,
V2 v2)
tuple
public static <V1,V2> Tuple<V1,V2> tuple(V1 v1,
V2 v2)
v1
public V1 v1()
v2
public V2 v2()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
create
public static <V1,V2> Tuple<V1,V2> create(V1 v1,
V2 v2)
- Helper function to create a tuple.
- Parameters:
v1
- the first element for the resulting tuplev2
- the second element for the resulting tuple
- Returns:
- the tuple (
v1
,v2
)