public class OrFilter extends java.lang.Object implements PacketFilter
Constructor and Description |
---|
OrFilter()
Creates an empty OR filter.
|
OrFilter(PacketFilter... filters)
Creates an OR 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 OR operation.
|
java.lang.String |
toString() |
public OrFilter()
addFilter(PacketFilter)
method.public OrFilter(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