MatchingRule build() {
            if (denyAcl != null) {
                return new MatchingAclRule(denyAcl, DENIED);
            } else if (allowAcl != null) {
                return new MatchingAclRule(allowAcl, ALLOWED);
            } else if (!hasResourceAcls) {
                return noAclRule;
            } else {
                return DENY_RULE;
            }
        }
Creates a consistent Iterable on read-only copy of AclBindings data for the given filter.

@param filter The filter constraining the AclBindings to be present in the Iterable.
@return Iterable over AclBindings matching the filter.
metadata/src/main/java/org/apache/kafka/metadata/authorizer/StandardAuthorizerData.java