/** * Gets the sha1 hash of the deployment as a hex string. * * @return the hash */ public String getSha1HashAsHexString() { return AbstractModelElement.bytesToHexString(sha1Hash); }
/** * Computes a hash of the name and sha1 hash. Exposed as a convenience since {@link * #getSha1Hash()} returns a defensive copy of the byte[]. * * @return a hash of the name and the sha1 hash */ long elementHash() { return name.hashCode() & 0xffffffffL ^ AbstractModelElement.calculateElementHashOf(sha1Hash); }