edu.columbia.cs.utils
Class Pair<A,B>

java.lang.Object
  extended by edu.columbia.cs.utils.Pair<A,B>
All Implemented Interfaces:
java.io.Serializable

public class Pair<A,B>
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Pair(A a, B b)
           
 
Method Summary
 A a()
           
 B b()
           
 boolean equals(java.lang.Object that)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(A a,
            B b)
Method Detail

a

public A a()

b

public B b()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object