@Test public void murmur3_32AnonymizerTest() { Anonymizer anonymous = new Anonymizer("murmur3_32"); String hashCode = anonymous.generateHash("127.0.0.1", "fake user agent string"); assertEquals(hashCode, "253ac1b8"); }
public final String generateHash(final String ipAddress, final String userAgent) { HashCode hc = this.hasher. putString(ipAddress). putString(userAgent). hash(); return hc.toString(); }
Anonymizer { public final String generateHash(final String ipAddress, final String userAgent) { HashCode hc = this.hasher. putString(ipAddress). putString(userAgent). hash(); return hc.toString(); } }
Anonymizer { public final String generateHash(final String ipAddress, final String userAgent) { HashCode hc = this.hasher. putString(ipAddress). putString(userAgent). hash(); return hc.toString(); } Anonymizer(final String hashFunction); }
Anonymizer { public final String generateHash(final String ipAddress, final String userAgent) { HashCode hc = this.hasher. putString(ipAddress). putString(userAgent). hash(); return hc.toString(); } Anonymizer(final String hashFunction); final String generateHash(final String ipAddress, final String userAgent); }
Anonymizer { public final String generateHash(final String ipAddress, final String userAgent) { HashCode hc = this.hasher. putString(ipAddress). putString(userAgent). hash(); return hc.toString(); } Anonymizer(final String hashFunction); final String generateHash(final String ipAddress, final String userAgent);  }