For certain hash functions in Java it would be nice to see the value as an unsigned integer (e.g. for comparison to other implementations) but Java supports only signed type
long abs(int num){ return num < 0 ? num * -1 : num; }