Package org.jivesoftware.smack.filter
Class ThreadFilter
- java.lang.Object
-
- org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter<Message>
-
- org.jivesoftware.smack.filter.ThreadFilter
-
- All Implemented Interfaces:
StanzaFilter
,Predicate<Stanza>
public class ThreadFilter extends FlexibleStanzaTypeFilter<Message> implements StanzaFilter
Filters for message packets with a particular thread value.
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter
stanzaType
-
-
Constructor Summary
Constructors Constructor Description ThreadFilter(String thread)
Creates a new thread filter using the specified thread value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
acceptSpecific(Message message)
String
toString()
-
Methods inherited from class org.jivesoftware.smack.filter.FlexibleStanzaTypeFilter
accept
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.filter.StanzaFilter
accept, asPredicate, test
-
-
-
-
Constructor Detail
-
ThreadFilter
public ThreadFilter(String thread)
Creates a new thread filter using the specified thread value.- Parameters:
thread
- the thread value to filter for.
-
-
Method Detail
-
acceptSpecific
protected boolean acceptSpecific(Message message)
- Specified by:
acceptSpecific
in classFlexibleStanzaTypeFilter<Message>
-
toString
public String toString()
- Overrides:
toString
in classFlexibleStanzaTypeFilter<Message>
-
-