public abstract class FlexiblePacketTypeFilter<P extends Packet> extends java.lang.Object implements PacketFilter
Constructor and Description |
---|
FlexiblePacketTypeFilter() |
FlexiblePacketTypeFilter(java.lang.Class<P> packetType) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Packet packet)
Tests whether or not the specified packet should pass the filter.
|
protected abstract boolean |
acceptSpecific(P packet) |
public FlexiblePacketTypeFilter(java.lang.Class<P> packetType)
public FlexiblePacketTypeFilter()
public boolean accept(Packet packet)
PacketFilter
accept
in interface PacketFilter
packet
- the packet to test.protected abstract boolean acceptSpecific(P packet)