cz.cuni.amis.utils
Class NKey
java.lang.Object
cz.cuni.amis.utils.NKey
- Direct Known Subclasses:
- NKeyCommutative
public class NKey
- extends Object
N-argument key - used to store multiple keys within one object to provide n-argument key for maps.
The keys are not commutative! If you need to have commutativity for key's parameters use NKeyCommutative
.
- Author:
- jgemrot
Constructor Summary |
protected |
NKey()
Should be used by descendants together with init() |
|
NKey(Object... keys)
|
NKey
protected NKey()
- Should be used by descendants together with init()
NKey
public NKey(Object... keys)
init
protected void init(Object[] keys)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getCount
public int getCount()
getKey
public Object getKey(int index)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.