org.statcato.utils
Class MultidimensionalHashKey
- java.lang.Object
-
- org.statcato.utils.MultidimensionalHashKey
-
public class MultidimensionalHashKey extends java.lang.ObjectAn object that represents a key into a hash of multiple dimensions.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor and Description MultidimensionalHashKey(java.util.Vector values)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)java.lang.ObjectgetKey(int d)Returns the key value of the given dimension.intgetNumDimensions()Returns the number of dimensions in this hash key.inthashCode()
-
-
-
Constructor Detail
-
MultidimensionalHashKey
public MultidimensionalHashKey(java.util.Vector values)
Constructor.- Parameters:
values- a list of key values
-
-
Method Detail
-
getNumDimensions
public int getNumDimensions()
Returns the number of dimensions in this hash key.- Returns:
- number of dimensions
-
getKey
public java.lang.Object getKey(int d)
Returns the key value of the given dimension.- Parameters:
d- the dimension- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG