Class Parameters<P extends Parameter>
- java.lang.Object
-
- io.lettuce.core.dynamic.parameter.Parameters<P>
-
-
Constructor Summary
Constructors Constructor Description Parameters(Method method)
Create newParameters
given aMethod
.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract P
createParameter(Method method, int parameterIndex)
Parameter
getBindableParameter(int index)
Get the bindable parameter according it's logical position in the command.List<P>
getBindableParameters()
ReturnsParameter
instances 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, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
Parameters
public Parameters(Method method)
Create newParameters
given aMethod
.- Parameters:
method
- must not benull
.
-
-
Method Detail
-
createParameter
protected abstract P createParameter(Method method, int parameterIndex)
- Parameters:
method
- must not benull
.parameterIndex
- the parameter index.- Returns:
- the
Parameter
.
-
getBindableParameter
public Parameter getBindableParameter(int index)
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
public List<P> getBindableParameters()
ReturnsParameter
instances with effectively all special parameters removed.- Returns:
-
-