Beispiel #1
0
 @Override
 protected String computeKey() {
   Fingerprint f = new Fingerprint();
   f.addString(GUID);
   f.addInt(filesetTree ? 1 : 0);
   return f.hexDigestAndReset();
 }
Beispiel #2
0
 /**
  * Returns a hash code calculated from the hash code of this Environment and the transitive
  * closure of other Environments it loads.
  */
 public String getTransitiveContentHashCode() {
   // Calculate a new hash from the hash of the loaded Extension-s.
   Fingerprint fingerprint = new Fingerprint();
   fingerprint.addString(Preconditions.checkNotNull(fileContentHashCode));
   TreeSet<String> importStrings = new TreeSet<>(importedExtensions.keySet());
   for (String importString : importStrings) {
     fingerprint.addString(importedExtensions.get(importString).getTransitiveContentHashCode());
   }
   return fingerprint.hexDigestAndReset();
 }
 @Override
 protected String computeKey() {
   Fingerprint f = new Fingerprint();
   f.addString(GUID);
   f.addString(String.valueOf(makeExecutable));
   f.addString(template.getKey());
   f.addInt(substitutions.size());
   for (Substitution entry : substitutions) {
     f.addString(entry.getKey());
     f.addString(entry.getValue());
   }
   return f.hexDigestAndReset();
 }