@ThreadSafe public class PacketFilterCollection extends Object implements IPacketFilter
Thread safe by delegation
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_AND
The constant TYPE_AND.
|
static int |
TYPE_OR
The constant TYPE_OR.
|
| Constructor and Description |
|---|
PacketFilterCollection()
Instantiates a new Packet filter collection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(IPacketFilter filter)
Add a filter
|
int |
getFilterType()
Gets filter type.
|
boolean |
isType(int t)
Is type boolean.
|
boolean |
rejectedByFilter(AisPacket packet)
Check against all filters
|
void |
setFilterType(int filterType)
Sets filter type.
|
public static final int TYPE_AND
public static final int TYPE_OR
public PacketFilterCollection()
public int getFilterType()
public boolean rejectedByFilter(AisPacket packet)
rejectedByFilter in interface IPacketFilterpacket - the packetpublic void addFilter(IPacketFilter filter)
filter - the filterpublic boolean isType(int t)
t - the tpublic void setFilterType(int filterType)
filterType - the filter typeCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.