java.lang.Object
io.lettuce.core.dynamic.parameter.Parameters<P>
- All Implemented Interfaces:
Iterable<P>
- Direct Known Subclasses:
ExecutionSpecificParameters
public abstract class Parameters<P extends Parameter> extends Object implements Iterable<P>
Base class to abstract method
Parameters.- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description Parameters(Method method)Create newParametersgiven aMethod. -
Method Summary
Modifier and Type Method Description protected abstract PcreateParameter(Method method, int parameterIndex)ParametergetBindableParameter(int index)Get the bindable parameter according it's logical position in the command.List<P>getBindableParameters()ReturnsParameterinstances with effectively all special parameters removed.List<P>getParameters()Iterator<P>iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Parameters
Create newParametersgiven aMethod.- Parameters:
method- must not benull.
-
-
Method Details
-
createParameter
- Parameters:
method- must not benull.parameterIndex- the parameter index.- Returns:
- the
Parameter.
-
getParameters
- Returns:
-
getBindableParameter
Get the bindable parameter according it's logical position in the command. Declarative position may differ because of special parameters interleaved.- Parameters:
index-- Returns:
- the
Parameter.
-
getBindableParameters
ReturnsParameterinstances with effectively all special parameters removed.- Returns:
-
iterator
-