/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.EntityHeader
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.objectmodel.SsgKeyHeader
 */
package com.l7tech.server.search.processors;

import com.l7tech.objectmodel.EntityHeader;
import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.SsgKeyHeader;
import com.l7tech.server.search.objects.DependentEntity;
import com.l7tech.server.search.processors.SsgKeyEntryDependencyProcessor;

class a
extends DependentEntity {
    final boolean val$caseInsensitiveAlias;

    a(SsgKeyEntryDependencyProcessor ssgKeyEntryDependencyProcessor, String string, EntityHeader entityHeader, boolean bl2) {
        this.val$caseInsensitiveAlias = bl2;
        super(string, entityHeader);
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (object == null || this.getClass() != object.getClass()) {
            return false;
        }
        DependentEntity dependentEntity = (DependentEntity)object;
        if (!(dependentEntity.getEntityHeader() instanceof SsgKeyHeader)) {
            return false;
        }
        SsgKeyHeader ssgKeyHeader = (SsgKeyHeader)dependentEntity.getEntityHeader();
        boolean bl2 = this.val$caseInsensitiveAlias ? ((SsgKeyHeader)this.getEntityHeader()).getAlias().equalsIgnoreCase(ssgKeyHeader.getAlias()) : ((SsgKeyHeader)this.getEntityHeader()).getAlias().equals(ssgKeyHeader.getAlias());
        return bl2 && Goid.equals((Goid)((SsgKeyHeader)this.getEntityHeader()).getKeystoreId(), (Goid)ssgKeyHeader.getKeystoreId());
    }
}

