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

import org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter;
import org.jivesoftware.smack.filter.StanzaFilter;
import org.jivesoftware.smack.packet.Message;

public class MessageWithBodiesFilter
extends FlexibleStanzaTypeFilter<Message> {
    public static final StanzaFilter INSTANCE = new MessageWithBodiesFilter();

    private MessageWithBodiesFilter() {
        super(Message.class);
    }

    @Override
    protected boolean acceptSpecific(Message message) {
        return !message.getBodies().isEmpty();
    }

    @Override
    public String toString() {
        return this.getClass().getSimpleName();
    }
}
