public class AndFilter extends java.lang.Object implements PacketFilter
Constructor and Description |
---|
AndFilter()
Creates an empty AND filter.
|
AndFilter(PacketFilter... filters)
Creates an AND filter using the specified filters.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString() |
public AndFilter()
addFilter(PacketFilter)
method.public AndFilter(PacketFilter... filters)
filters
- the filters to add.public void addFilter(PacketFilter filter)
filter
- a filter to add to the filter list.public boolean accept(Packet packet)
PacketFilter
accept
in interface PacketFilter
packet
- the packet to test.public java.lang.String toString()
toString
in class java.lang.Object