Interface IParameterMap
public interface IParameterMap
A ParameterMap can be used to define the values for parameters of an query.
Call IGetRequest.createParameterMap() to create an empty ParameterMap. To add a ParameterMap
to a request, call IGetRequest.setParameters(..).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method can be used to add a single value parameter.void
putCollection
(String name, List<?> values) This method can be used to add a collection of values or ranges.void
This method can be used to add a range parameter.
-
Method Details
-
put
This method can be used to add a single value parameter.- Parameters:
name
- The name of the parameter, without the @ signvalue
- The value of the parameter
-
putRange
This method can be used to add a range parameter.- Parameters:
name
- The name of the parameter, without the @ signstart
- The start value of the parameterend
- The end value of the parameter
-
putCollection
This method can be used to add a collection of values or ranges. A range can be defined by an array of two items.- Parameters:
name
- The name of the parameter, without the @ signvalues
- The collection of values or ranges for this parameter
-