Interface DatagramPacketFilter

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract boolean accept(DatagramPacket p) Determines whether a specific DatagramPacket is accepted by this filter i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • accept

         abstract boolean accept(DatagramPacket p)

        Determines whether a specific DatagramPacket is accepted by this filter i.e. whether the caller should include the specified DatagramPacket in a selection based on this filter.

        Parameters:
        p - the DatagramPacket which is to be checked whether it is accepted by this filter
        Returns:

        true if this filter accepts the specified DatagramPacket i.e. if the caller should include the specified DatagramPacket in a selection based on this filter; otherwise, false