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