// Common Hash
HashFunction hf = Hashing.goodFastHash(32);
HashCode code = hf.hashObject(new Person(1, "Jiyun", "Xie", 1984), PersonFunnel.INSTANCE);
System.out.println("Code1 => " + code.asInt());
code = hf.hashObject(new Person(1, "Jiyun", "Xie", 1985), PersonFunnel.INSTANCE);
System.out.println("Code2 => " + code.asInt());
// Consistent Hashing
HashFunction hf2 = Hashing.goodFastHash(64);
code = hf2.hashObject(new Person(1, "Jiyun", "Xie", 1984), PersonFunnel.INSTANCE);
System.out.println("Code3 => " + code.asLong());
long hash = code.asLong();