@PublicEvolving public interface ArgumentCount
Note: Implementations should implement Object.hashCode()
and Object.equals(Object)
.
ConstantArgumentCount
Modifier and Type | Method and Description |
---|---|
Optional<Integer> |
getMaxCount()
Returns the maximum number of argument (inclusive) that a function can take.
|
Optional<Integer> |
getMinCount()
Returns the minimum number of argument (inclusive) that a function can take.
|
boolean |
isValidCount(int count)
Enables custom validation of argument counts after
getMinCount() and getMaxCount() have been validated. |
boolean isValidCount(int count)
getMinCount()
and getMaxCount()
have been validated.count
- total number of arguments including each argument for a vararg function callOptional<Integer> getMinCount()
Optional.empty()
if such a lower bound is not defined.
Optional<Integer> getMaxCount()
Optional.empty()
if such an upper bound is not defined.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.