| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smack.filter.AndFilter
public class AndFilter
Implements the logical AND operation over two or more packet filters. In other words, packets pass this filter if they pass all of the filters.
| Constructor Summary | |
|---|---|
| AndFilter()Creates an empty AND filter. | |
| AndFilter(PacketFilter... filters)Creates an AND filter using the specified filters. | |
| Method Summary | |
|---|---|
|  boolean | accept(Packet packet)Tests whether or not the specified packet should pass the filter. | 
|  void | addFilter(PacketFilter filter)Adds a filter to the filter list for the AND operation. | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public AndFilter()
addFilter(PacketFilter) method.
public AndFilter(PacketFilter... filters)
filters - the filters to add.| Method Detail | 
|---|
public void addFilter(PacketFilter filter)
filter - a filter to add to the filter list.public boolean accept(Packet packet)
PacketFilter
accept in interface PacketFilterpacket - the packet to test.
public String toString()
toString in class Object| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||