org.apache.hcatalog.data
Class Pair<T,U>

Object
  extended by Pair<T,U>
All Implemented Interfaces:
Serializable

public class Pair<T,U>
extends Object
implements Serializable

Copy of C++ STL pair container.

See Also:
Serialized Form

Field Summary
 T first
           
 U second
           
 
Constructor Summary
Pair(T f, U s)
           
 
Method Summary
 boolean equals(Object other)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

first

public T first

second

public U second
Constructor Detail

Pair

public Pair(T f,
            U s)
Parameters:
f - First element in pair.
s - Second element in pair.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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