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

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

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

A pair of objects, but only the first one is considered in the equals() and hashCode() methods.

Author:
Adam Warski

Constructor Summary
KeyValue(T1 obj1, T2 obj2)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 T1 getFirst()
           
 T2 getSecond()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValue

public KeyValue(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