Annotation Type 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 {@link @Port} instead, or if you need multiple ranges then use {@link @PortRanges}.
    • Required Element Summary

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

      • minimum

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

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