@Override
    public int hashCode() {
        int hash = 17;
        if (key != null) {
            hash = 31 * hash + key.hashCode();
        }
        if (defMd5 != null) {
            hash = 31 * hash + defMd5.hashCode();
        }
        hash = 31 * hash + errorCode;
        if (! isError()) {
            // checksum and generation only matter when the RawConfig is not an error.
            hash = 31 * hash + (int)(generation ^(generation >>>32));
            hash = 31 * hash + payloadChecksums.hashCode();
        }
        return hash;
    }
Convenience method.
@return true if errorCode() returns 0, false otherwise.
config/src/main/java/com/yahoo/vespa/config/RawConfig.java