/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.service.PublishedService
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.util.Functions$Binary
 *  com.l7tech.util.Pair
 */
package com.l7tech.server.service.resolution;

import com.l7tech.gateway.common.service.PublishedService;
import com.l7tech.objectmodel.Goid;
import com.l7tech.server.service.resolution.NonUniqueServiceResolutionException;
import com.l7tech.util.Functions;
import com.l7tech.util.Pair;
import java.util.Map;

class b
implements Functions.Binary<String, String, Pair<Map<String, Object>, PublishedService>> {
    final Goid val$serviceGoid;
    final boolean val$displayName;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    b(NonUniqueServiceResolutionException nonUniqueServiceResolutionException, Goid goid, boolean bl2) {
        this.val$serviceGoid = goid;
        this.val$displayName = bl2;
    }

    public String call(String string, Pair<Map<String, Object>, PublishedService> pair) {
        return string != null ? string : (Goid.equals((Goid)((PublishedService)pair.right).getGoid(), (Goid)this.val$serviceGoid) ? (this.val$displayName ? ((PublishedService)pair.right).displayName() : ((PublishedService)pair.right).getName()) : null);
    }
}

