Annotation Interface 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
invalid @link
{@link @Port
} instead, or if you need just a single port range then use
invalid @link
{@link @PortRange
}.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Sets the valid port ranges
  • Element Details

    • value

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