com.planet_ink.coffee_mud.core.collections
Class Pair<T,K>

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.collections.Pair<T,K>
All Implemented Interfaces:
java.util.Map.Entry<T,K>
Direct Known Subclasses:
Triad

public class Pair<T,K>
extends java.lang.Object
implements java.util.Map.Entry<T,K>


Nested Class Summary
static class Pair.FirstConverter<T,K>
           
static class Pair.SecondConverter<T,K>
           
 
Field Summary
 T first
           
 K second
           
 
Constructor Summary
Pair(T frst, K scnd)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 T getKey()
           
 K getValue()
           
 int hashCode()
           
 K setValue(K value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

public T first

second

public K second
Constructor Detail

Pair

public Pair(T frst,
            K scnd)
Method Detail

getKey

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

getValue

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

setValue

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

equals

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

hashCode

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