org.apache.hadoop.hive.common
Class ObjectPair<F,S>

java.lang.Object
  extended by org.apache.hadoop.hive.common.ObjectPair<F,S>

public class ObjectPair<F,S>
extends Object


Constructor Summary
ObjectPair()
           
ObjectPair(F first, S second)
           
 
Method Summary
static
<T1,T2> ObjectPair<T1,T2>
create(T1 f, T2 s)
          Creates a pair.
 boolean equals(Object that)
           
 boolean equals(ObjectPair<F,S> that)
           
 F getFirst()
           
 S getSecond()
           
 void setFirst(F first)
           
 void setSecond(S second)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectPair

public ObjectPair()

ObjectPair

public ObjectPair(F first,
                  S second)
Method Detail

create

public static <T1,T2> ObjectPair<T1,T2> create(T1 f,
                                               T2 s)
Creates a pair. Constructor doesn't infer template args but the method does, so the code becomes less ugly.


getFirst

public F getFirst()

setFirst

public void setFirst(F first)

getSecond

public S getSecond()

setSecond

public void setSecond(S second)

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(ObjectPair<F,S> that)


Copyright © 2012 The Apache Software Foundation