public final class HashableMultiKey extends Object implements Serializable, MultiKey
Object.hashCode()
and Arrays.equals(Object[], Object[])
Modifier and Type | Field and Description |
---|---|
static EPTypeClass |
EPTYPE
Type information
|
Constructor and Description |
---|
HashableMultiKey(Object key)
Constructor for a single key object.
|
HashableMultiKey(Object[] keys)
Constructor for multiple keys supplied in an object array.
|
HashableMultiKey(Object key1,
Object key2)
Constructor for a pair of key objects.
|
HashableMultiKey(Object key1,
Object key2,
Object key3)
Constructor for three key objects.
|
HashableMultiKey(Object key1,
Object key2,
Object key3,
Object key4)
Constructor for four key objects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Object |
get(int index)
Returns the key object at the specified position.
|
Object |
getKey(int num)
Returns the key value at the given index
|
Object[] |
getKeys()
Returns keys.
|
int |
getNumKeys()
Returns the number of keys available
|
int |
hashCode() |
int |
size()
Returns the number of key objects.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toObjectArray
public static final EPTypeClass EPTYPE
public HashableMultiKey(Object[] keys)
keys
- is an array of key objectspublic HashableMultiKey(Object key)
key
- is the single key objectpublic HashableMultiKey(Object key1, Object key2)
key1
- is the first key objectkey2
- is the second key objectpublic HashableMultiKey(Object key1, Object key2, Object key3)
key1
- is the first key objectkey2
- is the second key objectkey3
- is the third key objectpublic final int size()
public final Object get(int index)
index
- is the array positionpublic int getNumKeys()
MultiKey
getNumKeys
in interface MultiKey
public Object getKey(int num)
MultiKey
public Object[] getKeys()
Copyright © 2005–2021. All rights reserved.