@PublicEvolving
public interface ArgumentCount
Note: Implementations should implement Object.hashCode() and Object.equals(Object).
| 限定符和类型 | 方法和说明 |
|---|---|
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–2021 The Apache Software Foundation. All rights reserved.