Class UdpPortCriterion

  • All Implemented Interfaces:
    Criterion

    public final class UdpPortCriterion
    extends Object
    implements Criterion
    Implementation of UDP port criterion (16 bits unsigned integer).
    • Method Detail

      • type

        public Criterion.Type type()
        Description copied from interface: Criterion
        Returns the type of criterion.
        Specified by:
        type in interface Criterion
        Returns:
        type of criterion
      • udpPort

        public TpPort udpPort()
        Gets the UDP port to match.
        Returns:
        the UDP port to match
      • mask

        public TpPort mask()
        Gets the mask for the UDP port to match.
        Returns:
        the UDP port mask, null if not specified
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object