Class PortRange.Builder

  • Enclosing class:
    PortRange

    public static class PortRange.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • minimumPort

        public PortRange.Builder minimumPort​(Integer minimumPort)
        The minimum port in the range (inclusive), or the sole port of a single-port range.
        Parameters:
        minimumPort - the value to set
        Returns:
        this builder
      • maximumPort

        public PortRange.Builder maximumPort​(Integer maximumPort)
        The maximum port in the range (inclusive), which may be absent for a single-port range.
        Parameters:
        maximumPort - the value to set
        Returns:
        this builder