public class OrFilter extends 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.
|
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)
PacketFilteraccept in interface PacketFilterpacket - the packet to test.Copyright © 2015 Ignite Realtime. All rights reserved.