Class MultiKeyArrayOfKeys<T>
java.lang.Object
com.espertech.esper.common.internal.collection.MultiKeyArrayOfKeys<T>
Functions as a key value for Maps where keys need to be composite values.
The class allows a Map that uses HashableMultiKey entries for key values to use multiple objects as keys.
It calculates the hashCode from the key objects on construction and caches the hashCode.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMultiKeyArrayOfKeys
(T[] keys) Constructor for multiple keys supplied in an object array. -
Method Summary
-
Field Details
-
EPTYPE
-
-
Constructor Details
-
MultiKeyArrayOfKeys
Constructor for multiple keys supplied in an object array.- Parameters:
keys
- is an array of key objects
-
-
Method Details
-
size
public final int size()Returns the number of key objects.- Returns:
- size of key object array
-
get
Returns the key object at the specified position.- Parameters:
index
- is the array position- Returns:
- key object at position
-
equals
-
hashCode
public final int hashCode() -
toString
-
getArray
Returns the key value array.- Returns:
- key value array
-