org.apache.pig.impl.util
Class Pair<T,U>

java.lang.Object
  extended by org.apache.pig.impl.util.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 java.lang.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


Copyright © ${year} The Apache Software Foundation