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.intReturn the total number of parameters.default booleanReturn if any of the contained parameters aremandatory.default booleanReturntrueif 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()Returntrueif 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
-