org.elasticsearch.common.collect
Class Tuple<V1,V2>

java.lang.Object
  extended by org.elasticsearch.common.collect.Tuple<V1,V2>

public class Tuple<V1,V2>
extends java.lang.Object


Constructor Summary
Tuple(V1 v1, V2 v2)
           
 
Method Summary
static
<V1,V2> Tuple<V1,V2>
create(V1 v1, V2 v2)
          Helper function to create a tuple.
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static
<V1,V2> Tuple<V1,V2>
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
 

Constructor Detail

Tuple

public Tuple(V1 v1,
             V2 v2)
Method Detail

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 tuple
v2 - the second element for the resulting tuple
Returns:
the tuple (v1,v2)