/*
 * Decompiled with CFR 0.152.
 */
package org.jivesoftware.smack.filter;

import org.jivesoftware.smack.filter.AbstractListFilter;
import org.jivesoftware.smack.filter.StanzaFilter;
import org.jivesoftware.smack.packet.Stanza;

public class AndFilter
extends AbstractListFilter
implements StanzaFilter {
    public AndFilter() {
    }

    public AndFilter(StanzaFilter ... filters) {
        super(filters);
    }

    @Override
    public boolean accept(Stanza packet) {
        for (StanzaFilter filter : this.filters) {
            if (filter.accept(packet)) continue;
            return false;
        }
        return true;
    }
}
