Class PortRange.Builder

  • Enclosing class:
    PortRange

    public static class PortRange.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • max

        public PortRange.Builder max​(Integer max)
        The maximum port number, which must not be less than the minimum port number.

        To specify a single port number, set both the min and max to the same value.

        Parameters:
        max - the value to set
        Returns:
        this builder
      • min

        public PortRange.Builder min​(Integer min)
        The minimum port number, which must not be greater than the maximum port number.
        Parameters:
        min - the value to set
        Returns:
        this builder