HashCodeUtilspublic final class HashCodeUtils extends Object
Methods Summary |
---|
public static final int | hashMore(int hash, int more)
int result =hash <<1;
if (result <0)
result |=1;
return result ^more;
| public static final int | hashMore(int hash, long more)
int result =hashMore(hash, (int)(more >>>32));
return hashMore(result, (int)(more &0xffff));
| public static final int | hashMore(int hash, boolean[] more)
int result =hash <<1;
if (result <0)
result |=1;
if (more[0])
result ^=1;
for (int i =1; i <more.length; i++)
{
result <<=1;
if (result <0)
result |=1;
if (more[i])
result ^=1;
}
return result;
|
|