Example #1
0
 private String convertExtIdAsHex(EventExtId extId) {
   return Hex.encodeHexString(extId.getExtId().getBytes(Charsets.US_ASCII));
 }
Example #2
0
 private byte[] hashExtId(EventExtId extId) {
   HashCode hashCode = Hashing.sha1().hashString(extId.getExtId(), Charsets.US_ASCII);
   return hashCode.asBytes();
 }