static int stdHash(O a, S... fields) { if (a == null) ret 0; int hash = getClassName(a).hashCode(); for (S field : fields) hash = boostHashCombine(hash, hashCode(getOpt(a, field))); ret hash; }