Package org.jivesoftware.smack.filter
Class EmptyToMatcher
- java.lang.Object
-
- org.jivesoftware.smack.filter.EmptyToMatcher
-
- All Implemented Interfaces:
StanzaFilter
,Predicate<Stanza>
public final class EmptyToMatcher extends java.lang.Object implements StanzaFilter
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyToMatcher
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(Stanza packet)
Tests whether or not the specified stanza should pass the filter.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
-
-
-
-
Field Detail
-
INSTANCE
public static final EmptyToMatcher INSTANCE
-
-
Method Detail
-
accept
public boolean accept(Stanza packet)
Description copied from interface:StanzaFilter
Tests whether or not the specified stanza should pass the filter.- Specified by:
accept
in interfaceStanzaFilter
- Parameters:
packet
- the stanza to test.- Returns:
- true if and only if
stanza
passes the filter.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-