cz.cuni.amis.utils
Class NKey

Package class diagram package NKey
java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getCount()
           
 Object getKey(int index)
           
 int hashCode()
           
protected  void init(Object[] keys)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NKey

protected NKey()
Should be used by descendants together with init()


NKey

public NKey(Object... keys)
Method Detail

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 © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.