aima.util
Class Pair<X,Y>

java.lang.Object
  extended by aima.util.Pair<X,Y>

public class Pair<X,Y>
extends java.lang.Object


Constructor Summary
Pair(X a, Y b)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 X getFirst()
           
 Y getSecond()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(X a,
            Y b)
Method Detail

getFirst

public X getFirst()

getSecond

public Y getSecond()

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

toString

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