Annotation Interface IntRangeParser


@Target({METHOD,TYPE}) @Retention(RUNTIME) @AvailableSince("0.0.30") public @interface IntRangeParser
A parser that parses an integer range
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    Upper bound of the range (excl)
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Lower bound of the range (excl)
    Keyword for the parser, default is "range"
    int
    Parser priority
    int
    Input int must be divisible by this number
  • Element Details

    • from

      int from
      Lower bound of the range (excl)
      Returns:
      the lower bound of the range
      Default:
      0
    • to

      int to
      Upper bound of the range (excl)
      Returns:
      the upper bound of the range
    • step

      int step
      Input int must be divisible by this number
      Returns:
      step
      Default:
      1
    • keyword

      String keyword
      Keyword for the parser, default is "range"
      Returns:
      the keyword for the parser
      See Also:
      Default:
      "range"
    • priority

      int priority
      Parser priority
      Returns:
      the priority of the parser
      See Also:
      Default:
      0