public boolean accept(Packet packet) {
        return (packet instanceof IQ && ((IQ) packet).getType().equals(type));
    }
public boolean accept(Packet packet) {
        return (packet instanceof IQ && ((IQ) packet).getType().equals(type));
    }
public boolean accept ( Packet packet ) { return ( packet instanceof IQ && ( ( IQ ) packet ) . getType ( ) . equals ( type ) ) ; }
/*
(non-Javadoc)

@see
org.jivesoftware.smack.filter.PacketFilter#accept(org.jivesoftware.smack
.packet.Packet)
/ * ( non - Javadoc )