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

import org.jivesoftware.smack.filter.StanzaFilter;
import org.jivesoftware.smack.packet.Stanza;
import org.jivesoftware.smack.util.Objects;

public class NotFilter
implements StanzaFilter {
    private final StanzaFilter filter;

    public NotFilter(StanzaFilter filter) {
        this.filter = Objects.requireNonNull(filter, "Parameter must not be null.");
    }

    @Override
    public boolean accept(Stanza packet) {
        return !this.filter.accept(packet);
    }
}
