Interface OperationParameters
- All Superinterfaces:
Iterable<OperationParameter>
public interface OperationParameters extends Iterable<OperationParameter>
A collection ofoperation parameters
.- Since:
- 2.0.0
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OperationParameter
get(int index)
Return the parameter at the specified index.int
getParameterCount()
Return the total number of parameters.default boolean
hasMandatoryParameter()
Return if any of the contained parameters aremandatory
.default boolean
hasParameters()
Returntrue
if there is at least one parameter.Stream<OperationParameter>
stream()
Return a stream of the contained parameters.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Method Detail
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
OperationParameter get(int index)
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