GNU Trove

gnu.trove
Interface TByteHashingStrategy

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
TByteHash

public interface TByteHashingStrategy
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: TByteHashingStrategy.java,v 1.1 2004/11/09 15:48:46 ericdf Exp $
Author:
Eric D. Friedman

Method Summary
 int computeHashCode(byte val)
          Computes a hash code for the specified byte.
 

Method Detail

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.

Returns:
the hashCode

GNU Trove

GNU Trove is copyright © 2001-2005 Eric D. Friedman. All Rights Reserved.