org.jboss.shotoku.tools
Class Pair<T1,T2>

java.lang.Object
  extended by org.jboss.shotoku.tools.Pair<T1,T2>
Type Parameters:
T1 -
T2 -

public class Pair<T1,T2>
extends java.lang.Object

A pair of objects.

Author:
Adam Warski

Constructor Summary
Pair(T1 obj1, T2 obj2)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 T1 getFirst()
           
 T2 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(T1 obj1,
            T2 obj2)
Method Detail

getFirst

public T1 getFirst()

getSecond

public T2 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