Annotation Interface PortRange


@Retention(RUNTIME) @Target(FIELD) public @interface PortRange
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 multiple ranges then use
invalid @link
{@link @PortRanges
}.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    Sets the maximum port (inclusive)
    int
    Sets the minimum port (inclusive)
  • Element Details

    • minimum

      int minimum
      Sets the minimum port (inclusive)
      Returns:
      Minimum port
    • maximum

      int maximum
      Sets the maximum port (inclusive)
      Returns:
      Maximum port