/*
 * 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 MessageWithSubjectFilter
extends FlexibleStanzaTypeFilter<Message> {
    public static final StanzaFilter INSTANCE = new MessageWithSubjectFilter();

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

    @Override
    protected boolean acceptSpecific(Message message) {
        return message.getSubject() != null;
    }

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