git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4296 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-07-29 01:10:15 +00:00
parent 3d7c12a5d1
commit 47a8a27a4e
4 changed files with 36 additions and 57 deletions
+1 -6
View File
@@ -47,12 +47,7 @@ public class Name extends Object
// from interface Hashable
public function hashCode () :int
{
var norm :String = getNormal();
var hash :int = 0;
for (var ii :int = 0; ii < norm.length; ii++) {
hash = (hash << 1) ^ int(norm.charCodeAt(ii));
}
return hash;
return StringUtil.hashCode(getNormal());
}
// from interface Comparable