Interface ArgumentCount

    • Method Detail

      • isValidCount

        boolean isValidCount​(int count)
        Enables custom validation of argument counts after getMinCount() and getMaxCount() have been validated.
        Parameters:
        count - total number of arguments including each argument for a vararg function call
      • getMinCount

        Optional<Integer> getMinCount()
        Returns the minimum number of argument (inclusive) that a function can take.

        Optional.empty() if such a lower bound is not defined.

      • getMaxCount

        Optional<Integer> getMaxCount()
        Returns the maximum number of argument (inclusive) that a function can take.

        Optional.empty() if such an upper bound is not defined.