org.jivesoftware.smack.filter
Class NotFilter
java.lang.Object
   org.jivesoftware.smack.filter.NotFilter
org.jivesoftware.smack.filter.NotFilter
- All Implemented Interfaces: 
- PacketFilter
- public class NotFilter 
- extends Object- implements PacketFilter
Implements the logical NOT operation on a packet filter. In other words, packets
 pass this filter if they do not pass the supplied filter.
- Author:
- Matt Tucker
 
| Method Summary | 
|  boolean | accept(Packet packet)Tests whether or not the specified packet should pass the filter.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
NotFilter
public NotFilter(PacketFilter filter)
- Creates a NOT filter using the specified filter.
 
- Parameters:
- filter- the filter.
 
accept
public boolean accept(Packet packet)
- Description copied from interface: PacketFilter
- Tests whether or not the specified packet should pass the filter.
 
- 
- Specified by:
- acceptin interface- PacketFilter
 
- 
- Parameters:
- packet- the packet to test.
- Returns:
- true if and only if packet passes the filter.
 
Copyright © 2003-2007 Jive Software.