Package org.jivesoftware.smack.filter
Class AbstractFromToMatchesFilter
java.lang.Object
org.jivesoftware.smack.filter.AbstractFromToMatchesFilter
- All Implemented Interfaces:
Predicate<Stanza>
,StanzaFilter
- Direct Known Subclasses:
FromMatchesFilter
,ToMatchesFilter
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractFromToMatchesFilter
(Jid address, boolean ignoreResourcepart) Creates a filter matching on the address returned bygetAddressToCompare(Stanza)
.protected
AbstractFromToMatchesFilter
(Jid address, org.jivesoftware.smack.filter.AbstractFromToMatchesFilter.MatchMode matchMode) Creates a filter matching on the address returned bygetAddressToCompare(Stanza)
. -
Method Summary
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 Details
-
AbstractFromToMatchesFilter
Creates a filter matching on the address returned bygetAddressToCompare(Stanza)
. The address must be the same as the filter address. The second parameter specifies whether the full or the bare addresses are compared.- Parameters:
address
- The address to filter for. Ifnull
is given, thengetAddressToCompare(Stanza)
must also returnnull
to match.ignoreResourcepart
- TODO javadoc me please
-
AbstractFromToMatchesFilter
protected AbstractFromToMatchesFilter(Jid address, org.jivesoftware.smack.filter.AbstractFromToMatchesFilter.MatchMode matchMode) Creates a filter matching on the address returned bygetAddressToCompare(Stanza)
. The address must be the same as the filter address. The second parameter specifies whether the full or the bare addresses are compared.- Parameters:
address
- The address to filter for. Ifnull
is given, thengetAddressToCompare(Stanza)
must also returnnull
to match.matchMode
- the match mode.
-
-
Method Details
-
accept
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.
-
getAddressToCompare
-
toString
-