PCJ API
Version 1.2

bak.pcj.hash
Interface LongHashFunction

All Known Implementing Classes:
DefaultLongHashFunction

public interface LongHashFunction

This interface represents hash functions from long values to int values. The int value result is chosen to achieve consistence with the common hashCode() method. The interface is provided to alter the hash functions used by hashing data structures, like LongKeyIntChainedHashMap or LongChainedHashSet.

Since:
1.0
See Also:
DefaultLongHashFunction

Method Summary
 int hash(long v)
          Returns a hash code for a specified long value.
 

Method Detail

hash

public int hash(long v)
Returns a hash code for a specified long value.

Parameters:
v - the value for which to return a hash code.
Returns:
a hash code for the specified value.

PCJ API
Version 1.2

Report a bug or request a feature.
Further information on the development and latest release of PCJ can be found at the project homepage.

Primitive Collections for Java is released under the GNU Lesser General Public License.
Copyright © 2002, 2003 Søren Bak. All Rights Reserved.

Hosted by SourceForge.net
SourceForge.net Logo