choco.kernel.common
Class HashCoding

java.lang.Object
  extended by choco.kernel.common.HashCoding

public class HashCoding
extends Object


Field Summary
static int SEED
          An initial value for a hashCode, to which is added contributions from fields.
 
Constructor Summary
HashCoding()
           
 
Method Summary
static int hashCodeMe(long field)
           
static int hashCodeMe(Object field)
           
static int hashCodeMe(Object[] fields)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEED

public static final int SEED
An initial value for a hashCode, to which is added contributions from fields. Using a non-zero value decreases collisons of hashCode values.

See Also:
Constant Field Values
Constructor Detail

HashCoding

public HashCoding()
Method Detail

hashCodeMe

public static int hashCodeMe(Object field)

hashCodeMe

public static int hashCodeMe(Object[] fields)

hashCodeMe

public static int hashCodeMe(long field)


Copyright © 2012. All Rights Reserved.