net.metanotion.util
Class Pair<A,B>

java.lang.Object
  extended by net.metanotion.util.Pair<A,B>
All Implemented Interfaces:
java.util.Map.Entry<A,B>

public final class Pair<A,B>
extends java.lang.Object
implements java.util.Map.Entry<A,B>


Field Summary
 A a
           
 B b
           
 
Constructor Summary
Pair(A first, B second)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 A getKey()
           
 B getValue()
           
 int hashCode()
           
 B setValue(B value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

public A a

b

public B b
Constructor Detail

Pair

public Pair(A first,
            B second)
Method Detail

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map.Entry<A,B>
Overrides:
equals in class java.lang.Object

getKey

public A getKey()
Specified by:
getKey in interface java.util.Map.Entry<A,B>

getValue

public B getValue()
Specified by:
getValue in interface java.util.Map.Entry<A,B>

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map.Entry<A,B>
Overrides:
hashCode in class java.lang.Object

setValue

public B setValue(B value)
Specified by:
setValue in interface java.util.Map.Entry<A,B>