Class IPEcnCriterion

  • All Implemented Interfaces:
    Criterion

    public final class IPEcnCriterion
    extends Object
    implements Criterion
    Implementation of IP ECN (Explicit Congestion Notification) criterion (2 bits).
    • 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
      • ipEcn

        public byte ipEcn()
        Gets the IP ECN value to match.
        Returns:
        the IP ECN value to match (2 bits)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object