|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.util.HashCodeHelper
public class HashCodeHelper extends java.lang.Object
A utility class to help calculate hashcode values using an algorithm similar to that outlined in "Effective Java, Joshua Bloch, 2nd Edition".
Method Summary | |
---|---|
static int
|
initHash()
|
static int
|
updateHash(int current, boolean var)
|
static int
|
updateHash(int current, char var)
|
static int
|
updateHash(int current, int var)
|
static int
|
updateHash(int current, long var)
|
static int
|
updateHash(int current, float var)
|
static int
|
updateHash(int current, double var)
|
static int
|
updateHash(int current, java.lang.Object var)
|
static int
|
updateHash(int current, boolean[] var)
|
static int
|
updateHash(int current, char[] var)
|
static int
|
updateHash(int current, byte[] var)
|
static int
|
updateHash(int current, short[] var)
|
static int
|
updateHash(int current, int[] var)
|
static int
|
updateHash(int current, long[] var)
|
static int
|
updateHash(int current, float[] var)
|
static int
|
updateHash(int current, double[] var)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
public static int initHash()
public static int updateHash(int current, boolean var)
public static int updateHash(int current, char 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)
public static int updateHash(int current, java.lang.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)
Groovy Documentation