/*
 * 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 OrFilter
extends AbstractListFilter
implements StanzaFilter {
    public OrFilter() {
    }

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

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