jconch.multikey
Class UniKey<KEY_T>

java.lang.Object
  extended by jconch.multikey.JConchMultiKey
      extended by jconch.multikey.UniKey<KEY_T>
Direct Known Subclasses:
DuoKey

public class UniKey<KEY_T>
extends JConchMultiKey

A holder for a single key.


Constructor Summary
UniKey(KEY_T key)
           
 
Method Summary
 KEY_T getKey1()
           
 int getKeyCount()
          The number of elements in the multikey.
 List<Object> getKeys()
          The keys that make up the multikey.
 
Methods inherited from class jconch.multikey.JConchMultiKey
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniKey

public UniKey(KEY_T key)
Method Detail

getKeyCount

public int getKeyCount()
Description copied from class: JConchMultiKey
The number of elements in the multikey.

Specified by:
getKeyCount in class JConchMultiKey
Returns:
The cardinality of this implementation.

getKey1

public KEY_T getKey1()

getKeys

public List<Object> getKeys()
Description copied from class: JConchMultiKey
The keys that make up the multikey.

Specified by:
getKeys in class JConchMultiKey
Returns:
An unmodifiable list of keys that make up the map.