Class AbstractJidTypeFilter
- java.lang.Object
-
- org.jivesoftware.smack.filter.jidtype.AbstractJidTypeFilter
-
- All Implemented Interfaces:
StanzaFilter
,Predicate<Stanza>
- Direct Known Subclasses:
FromJidTypeFilter
public abstract class AbstractJidTypeFilter extends java.lang.Object implements StanzaFilter
Base class for XMPP address type filters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractJidTypeFilter.JidType
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractJidTypeFilter(AbstractJidTypeFilter.JidType jidType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
accept(Stanza stanza)
Tests whether or not the specified stanza should pass the filter.protected abstract Jid
getJidToMatchFrom(Stanza stanza)
java.lang.String
toString()
-
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
asPredicate, test
-
-
-
-
Constructor Detail
-
AbstractJidTypeFilter
protected AbstractJidTypeFilter(AbstractJidTypeFilter.JidType jidType)
-
-
Method Detail
-
accept
public boolean accept(Stanza stanza)
Description copied from interface:StanzaFilter
Tests whether or not the specified stanza should pass the filter.- Specified by:
accept
in interfaceStanzaFilter
- Parameters:
stanza
- the stanza to test.- Returns:
- true if and only if
stanza
passes the filter.
-
getJidToMatchFrom
protected abstract Jid getJidToMatchFrom(Stanza stanza)
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-