gnu.trove
Interface TByteHashingStrategy
- Serializable
public interface TByteHashingStrategy
extends 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
$Id: PHashingStrategy.template,v 1.1 2006/11/10 23:28:00 robeden Exp $
computeHashCode
public int computeHashCode(byte val)
Computes a hash code for the specified byte. Implementors
can use the byte's own value or a custom scheme designed to
minimize collisions for a known set of input.
val
- byte for which the hashcode is to be computed
GNU Trove is copyright B) 2001-2007 Eric D. Friedman. All Rights Reserved.