|
From: Christopher W. <caw...@us...> - 2006-02-10 18:33:27
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5947/src/org/rubypeople/rdt/internal/core/util Modified Files: Util.java Log Message: add method for generating hashCodes (for IRubyElements) Index: Util.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/util/Util.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Util.java 13 Dec 2005 19:59:47 -0000 1.5 --- Util.java 10 Feb 2006 18:33:18 -0000 1.6 *************** *** 312,314 **** --- 312,322 ---- } + /** + * Combines two hash codes to make a new one. + */ + public static int combineHashCodes(int hashCode1, int hashCode2) { + return hashCode1 * 17 + hashCode2; + } + + } |