/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.util.Functions
 *  com.l7tech.util.Functions$Binary
 *  jakarta.persistence.criteria.CriteriaBuilder
 *  jakarta.persistence.criteria.Expression
 *  jakarta.persistence.criteria.Predicate
 *  jakarta.persistence.criteria.Root
 */
package com.l7tech.server;

import com.l7tech.server.al;
import com.l7tech.server.bx;
import com.l7tech.util.Functions;
import jakarta.persistence.criteria.CriteriaBuilder;
import jakarta.persistence.criteria.Expression;
import jakarta.persistence.criteria.Predicate;
import jakarta.persistence.criteria.Root;
import java.util.List;
import java.util.Map;

class ak
implements Functions.Binary<Predicate, Predicate, Map.Entry<String, List<Object>>> {
    final CriteriaBuilder val$builder;
    final Root val$root;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    ak(bx bx2, CriteriaBuilder criteriaBuilder, Root root) {
        this.val$builder = criteriaBuilder;
        this.val$root = root;
    }

    public Predicate call(Predicate predicate, Map.Entry<String, List<Object>> entry) {
        if (!entry.getValue().isEmpty()) {
            predicate = this.val$builder.and((Expression)predicate, (Expression)Functions.reduce((Iterable)entry.getValue(), (Object)this.val$builder.disjunction(), (Functions.Binary)new al(this, entry)));
        }
        return predicate;
    }
}

