Interface OperationParameters
- All Superinterfaces:
Iterable<OperationParameter>
A collection of
operation parameters
.- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionget
(int index) Return the parameter at the specified index.int
Return the total number of parameters.default boolean
Return if any of the contained parameters aremandatory
.default boolean
Returntrue
if there is at least one parameter.stream()
Return a stream of the contained parameters.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
hasParameters
default boolean hasParameters()Returntrue
if there is at least one parameter.- Returns:
- if there are parameters
-
getParameterCount
int getParameterCount()Return the total number of parameters.- Returns:
- the total number of parameters
-
hasMandatoryParameter
default boolean hasMandatoryParameter()Return if any of the contained parameters aremandatory
.- Returns:
- if any parameters are mandatory
-
get
Return the parameter at the specified index.- Parameters:
index
- the parameter index- Returns:
- the parameter
-
stream
Stream<OperationParameter> stream()Return a stream of the contained parameters.- Returns:
- a stream of the parameters
-