Interface ArgumentCount
- All Known Implementing Classes:
ConstantArgumentCount
@PublicEvolving
public interface ArgumentCount
Defines the count of accepted arguments (including open intervals) that a function can take.
Note: Implementations should implement Object.hashCode() and Object.equals(Object).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the maximum number of argument (inclusive) that a function can take.Returns the minimum number of argument (inclusive) that a function can take.booleanisValidCount(int count) Enables custom validation of argument counts aftergetMinCount()andgetMaxCount()have been validated.
-
Method Details
-
isValidCount
boolean isValidCount(int count) Enables custom validation of argument counts aftergetMinCount()andgetMaxCount()have been validated.- Parameters:
count- total number of arguments including each argument for a vararg function call
-
getMinCount
Returns the minimum number of argument (inclusive) that a function can take.Optional.empty()if such a lower bound is not defined. -
getMaxCount
Returns the maximum number of argument (inclusive) that a function can take.Optional.empty()if such an upper bound is not defined.
-