org.elasticsearch.util.gnu.trove
Interface TShortHashingStrategy
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- TShortByteHashMap, TShortDoubleHashMap, TShortFloatHashMap, TShortHash, TShortHashSet, TShortIntHashMap, TShortLongHashMap, TShortObjectHashMap, TShortShortHashMap
public interface TShortHashingStrategy
- extends java.io.Serializable
Interface to support pluggable hashing strategies in maps and sets.
Implementors can use this interface to make the trove hashing
algorithms use an optimal strategy when computing hashcodes.
Created: Sun Nov 4 08:56:06 2001
Method Summary |
int |
computeHashCode(short val)
Computes a hash code for the specified short. |
computeHashCode
int computeHashCode(short val)
- Computes a hash code for the specified short. Implementors
can use the short's own value or a custom scheme designed to
minimize collisions for a known set of input.
- Parameters:
val
- short for which the hashcode is to be computed
- Returns:
- the hashCode