gnu.trove
Interface TLongHashingStrategy
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- TLongDoubleHashMap, TLongFloatHashMap, TLongHash, TLongHashSet, TLongIntHashMap, TLongLongHashMap, TLongObjectHashMap
public interface TLongHashingStrategy
- 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
- Version:
- $Id: TLongHashingStrategy.java,v 1.3 2002/09/22 21:53:42 ericdf Exp $
- Author:
- Eric D. Friedman
Method Summary |
int |
computeHashCode(long val)
Computes a hash code for the specified long. |
computeHashCode
int computeHashCode(long val)
- Computes a hash code for the specified long. Implementors
can use the long's own value or a custom scheme designed to
minimize collisions for a known set of input.
- Parameters:
long
- for which the hashcode is to be computed
- Returns:
- the hashCode