cz.cuni.amis.utils
Class PairKey<FIRST,SECOND>
java.lang.Object
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
PairKey
public PairKey(FIRST first,
SECOND second)
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 © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.