Annotation Type PortRanges


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface PortRanges
    Annotation that indicates that an option/argument denotes a port number and its value should be restricted as such to a specific set of ports. If you just want to restrict to a predefined port type you should use {@link @Port} instead, or if you need just a single port range then use {@link @PortRange}.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      PortRange[] value
      Sets the valid port ranges
    • Element Detail

      • value

        PortRange[] value
        Sets the valid port ranges
        Returns:
        Port ranges