public class PacketTypeFilter extends Object implements PacketFilter
Constructor and Description |
---|
PacketTypeFilter(Class<? extends Packet> packetType)
Creates a new packet type filter that will filter for packets that are the
same type as packetType.
|
public boolean accept(Packet packet)
PacketFilter
accept
in interface PacketFilter
packet
- the packet to test.Copyright © 2003-2007 Jive Software.