jconch.multikey
Class DuoKey<KEY_T1,KEY_T2>

java.lang.Object
  extended by jconch.multikey.JConchMultiKey
      extended by jconch.multikey.UniKey<KEY_T1>
          extended by jconch.multikey.DuoKey<KEY_T1,KEY_T2>
Direct Known Subclasses:
SimpleDuoKey, TriKey

public class DuoKey<KEY_T1,KEY_T2>
extends UniKey<KEY_T1>

Author:
Robert Fischer, Smokejumper Consulting

Constructor Summary
DuoKey(KEY_T1 key1, KEY_T2 key2)
           
 
Method Summary
 KEY_T2 getKey2()
           
 int getKeyCount()
          The number of elements in the multikey.
 java.util.List<java.lang.Object> getKeys()
          The keys that make up the multikey.
 
Methods inherited from class jconch.multikey.UniKey
getKey1
 
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

DuoKey

public DuoKey(KEY_T1 key1,
              KEY_T2 key2)
Method Detail

getKey2

public KEY_T2 getKey2()

getKeyCount

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

Overrides:
getKeyCount in class UniKey<KEY_T1>
Returns:
The cardinality of this implementation.

getKeys

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

Overrides:
getKeys in class UniKey<KEY_T1>
Returns:
An unmodifiable list of keys that make up the map.