public interface Parametrized
| Modifier and Type | Method and Description |
|---|---|
<T> Parameter<T> |
firstParameter(ParameterType<T> parameterType,
T defaultValue)
Returns the first
Parameter of the given type or a parameter with a default value if no such parameter exists. |
<T> boolean |
hasParameter(ParameterType<T> parameterType)
Checks whether this object has a
Parameter of the given ParameterType. |
<T> java.util.Iterator<Parameter<T>> |
parameters(ParameterType<T> parameterType)
|
<T> Parameter<T> firstParameter(ParameterType<T> parameterType, T defaultValue)
Parameter of the given type or a parameter with a default value if no such parameter exists.parameterType - The ParameterType.defaultValue - The value to return in case no such parameter is present.Parameter.<T> java.util.Iterator<Parameter<T>> parameters(ParameterType<T> parameterType)
Iterator of all Parameters of the given ParameterType. Returns an empty Iterator of no such parameter exists.parameterType - The ParameterType of the parameters to return.Iterator of Parameters.<T> boolean hasParameter(ParameterType<T> parameterType)
Parameter of the given ParameterType.parameterType - The ParameterType to check.true if such a parameter is present, false otherwise.