Top Description Fields Constructors Methods
org.codehaus.groovy.util

public Class HashCodeHelper

extends Object
Class Inheritance
Imports
java.util.Arrays

A utility class to help calculate hashcode values using an algorithm similar to that outlined in "Effective Java, Joshua Bloch, 2nd Edition".

Field Summary

Modifier and TypeField and Description
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
private static int
shift(int current)

public static int
updateHash(int current, boolean var)

public static int
updateHash(int current, char var)

public static int
updateHash(int current, Character var)

public static int
updateHash(int current, int var)

public static int
updateHash(int current, Integer var)

public static int
updateHash(int current, long var)

public static int
updateHash(int current, Long var)

public static int
updateHash(int current, float var)

public static int
updateHash(int current, Float var)

public static int
updateHash(int current, double var)

public static int
updateHash(int current, Double var)

public static int
updateHash(int current, Object var)

public static int
updateHash(int current, boolean[] var)

public static int
updateHash(int current, char[] var)

public static int
updateHash(int current, byte[] var)

public static int
updateHash(int current, short[] var)

public static int
updateHash(int current, int[] var)

public static int
updateHash(int current, long[] var)

public static int
updateHash(int current, float[] var)

public static int
updateHash(int current, double[] var)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MULTback to summary
private static final int MULT
SEEDback to summary
private static final int SEED

Constructor Detail

HashCodeHelperback to summary
public HashCodeHelper()

Method Detail

initHashback to summary
public static int initHash()
shiftback to summary
private static int shift(int current)
updateHashback to summary
public static int updateHash(int current, boolean var)
updateHashback to summary
public static int updateHash(int current, char var)
updateHashback to summary
public static int updateHash(int current, Character var)
updateHashback to summary
public static int updateHash(int current, int var)
updateHashback to summary
public static int updateHash(int current, Integer var)
updateHashback to summary
public static int updateHash(int current, long var)
updateHashback to summary
public static int updateHash(int current, Long var)
updateHashback to summary
public static int updateHash(int current, float var)
updateHashback to summary
public static int updateHash(int current, Float var)
updateHashback to summary
public static int updateHash(int current, double var)
updateHashback to summary
public static int updateHash(int current, Double var)
updateHashback to summary
public static int updateHash(int current, Object var)
updateHashback to summary
public static int updateHash(int current, boolean[] var)
updateHashback to summary
public static int updateHash(int current, char[] var)
updateHashback to summary
public static int updateHash(int current, byte[] var)
updateHashback to summary
public static int updateHash(int current, short[] var)
updateHashback to summary
public static int updateHash(int current, int[] var)
updateHashback to summary
public static int updateHash(int current, long[] var)
updateHashback to summary
public static int updateHash(int current, float[] var)
updateHashback to summary
public static int updateHash(int current, double[] var)