Package org.codehaus.groovy.util
Class HashCodeHelper
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".
- 
Constructor SummaryConstructors Constructor Description HashCodeHelper()
- 
Method SummaryModifier and Type Method Description static intinitHash()static intupdateHash(int current, boolean var)static intupdateHash(int current, boolean[] var)static intupdateHash(int current, byte[] var)static intupdateHash(int current, char var)static intupdateHash(int current, char[] var)static intupdateHash(int current, double var)static intupdateHash(int current, double[] var)static intupdateHash(int current, float var)static intupdateHash(int current, float[] var)static intupdateHash(int current, int var)static intupdateHash(int current, int[] var)static intupdateHash(int current, long var)static intupdateHash(int current, long[] var)static intupdateHash(int current, short[] var)static intupdateHash(int current, java.lang.Character var)static intupdateHash(int current, java.lang.Double var)static intupdateHash(int current, java.lang.Float var)static intupdateHash(int current, java.lang.Integer var)static intupdateHash(int current, java.lang.Long var)static intupdateHash(int current, java.lang.Object var)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
HashCodeHelperpublic HashCodeHelper()
 
- 
- 
Method Details- 
initHashpublic static int initHash()
- 
updateHashpublic static int updateHash(int current, boolean var)
- 
updateHashpublic static int updateHash(int current, char var)
- 
updateHashpublic static int updateHash(int current, java.lang.Character var)
- 
updateHashpublic static int updateHash(int current, int var)
- 
updateHashpublic static int updateHash(int current, java.lang.Integer var)
- 
updateHashpublic static int updateHash(int current, long var)
- 
updateHashpublic static int updateHash(int current, java.lang.Long var)
- 
updateHashpublic static int updateHash(int current, float var)
- 
updateHashpublic static int updateHash(int current, java.lang.Float var)
- 
updateHashpublic static int updateHash(int current, double var)
- 
updateHashpublic static int updateHash(int current, java.lang.Double var)
- 
updateHashpublic static int updateHash(int current, java.lang.Object var)
- 
updateHashpublic static int updateHash(int current, boolean[] var)
- 
updateHashpublic static int updateHash(int current, char[] var)
- 
updateHashpublic static int updateHash(int current, byte[] var)
- 
updateHashpublic static int updateHash(int current, short[] var)
- 
updateHashpublic static int updateHash(int current, int[] var)
- 
updateHashpublic static int updateHash(int current, long[] var)
- 
updateHashpublic static int updateHash(int current, float[] var)
- 
updateHashpublic static int updateHash(int current, double[] var)
 
-