| bak.pcj.hash.BooleanHashFunction
All known Subclasses: bak.pcj.hash.DefaultBooleanHashFunction,
BooleanHashFunction | public interface BooleanHashFunction (Code) | | This interface represents hash functions from boolean values
to int values. The int value result is chosen to achieve
consistence with the common
Object.hashCode hashCode() method. The interface is provided to alter the hash functions used
by hashing data structures.
See Also: DefaultBooleanHashFunction author: Søren Bak version: 1.1 2003/10/1 since: 1.0 |
Method Summary | |
int | hash(boolean v) Returns a hash code for a specified boolean value.
Parameters: v - the value for which to return a hash code. |
hash | int hash(boolean v)(Code) | | Returns a hash code for a specified boolean value.
Parameters: v - the value for which to return a hash code. a hash code for the specified value. |
|
|