Package gnu.trove
Interface TFloatHashingStrategy
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
TFloatByteHashMap
,TFloatDoubleHashMap
,TFloatFloatHashMap
,TFloatHash
,TFloatHashSet
,TFloatIntHashMap
,TFloatLongHashMap
,TFloatObjectHashMap
,TFloatShortHashMap
public interface TFloatHashingStrategy 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: PHashingStrategy.template,v 1.1 2006/11/10 23:28:00 robeden Exp $
- Author:
- Eric D. Friedman
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
computeHashCode(float val)
Computes a hash code for the specified float.
-
-
-
Method Detail
-
computeHashCode
int computeHashCode(float val)
Computes a hash code for the specified float. Implementors can use the float's own value or a custom scheme designed to minimize collisions for a known set of input.- Parameters:
val
- float for which the hashcode is to be computed- Returns:
- the hashCode
-
-