@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AuthorizationResult that = (AuthorizationResult) o;
        return type == that.type &&
                Objects.equals(matchedRole, that.matchedRole);
    }
The various types of access control results.

@author bjorncs
vespa-athenz/src/main/java/com/yahoo/vespa/athenz/zpe/AuthorizationResult.java