ERXMultiKey Class Reference
List of all members.
Detailed Description
Simple class to use multiple objects as a single key for a dictionary or HashMap. The goal of this class is to be very fast.
Constructor & Destructor Documentation
Constructs a multi-key for a given number.
- Parameters:
-
Constructs a multi-key for a given object array.
- Parameters:
-
Constructs a multi-key for a given array.
- Parameters:
-
Constructs a multi-key for a given vector.
- Parameters:
-
Member Function Documentation
| final boolean equals |
( |
Object |
o |
) |
|
Method used to compare two ERXMultiKeys. A multi key is equal to another multi key if the number of keys are equal and all of the keys are either both null or equals.
- Parameters:
-
- Returns:
- result of comparison
Calculates a unique hash code for the given array of keys.
- Returns:
- unique hash code for the array of keys.
Method used to return the object array of keys for the current multi-key.
DO NOT MODIFY!
- Returns:
- object array of keys
| final void recomputeHashCode |
( |
|
) |
|
Recomputes the hash code if you ever changes the keys array directly
String representation of the multi-key.
- Returns:
- string representation of key.
Member Data Documentation
caches the number of keys
Object [] _keys [private] |
holds the object array of keys
The documentation for this class was generated from the following file:
- /opt/source/Wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/foundation/ERXMultiKey.java