cz.cuni.amis.utils
Class PairKey<FIRST,SECOND>

Package class diagram package PairKey
java.lang.Object
  extended by cz.cuni.amis.utils.PairKey<FIRST,SECOND>

public class PairKey<FIRST,SECOND>
extends Object

An object that may be used to combine two keys in a map. Added benefit over NKey is that it is generic.

Author:
Martin Cerny
See Also:
NKey

Constructor Summary
PairKey(FIRST first, SECOND second)
           
 
Method Summary
 boolean equals(Object obj)
           
 FIRST getFirst()
           
 SECOND getSecond()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PairKey

public PairKey(FIRST first,
               SECOND second)
Method Detail

getFirst

public FIRST getFirst()

getSecond

public SECOND getSecond()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.