public class PacketTypeFilter extends java.lang.Object implements PacketFilter
Constructor and Description |
---|
PacketTypeFilter(java.lang.Class packetType)
Creates a new packet type filter that will filter for packets that are the
same type as packetType.
|
public PacketTypeFilter(java.lang.Class packetType)
packetType
- the Class type.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
Copyright © 2003-2007 Jive Software.