Class RequestParameters
java.lang.Object
org.sourcelab.buildkite.api.client.request.RequestParameters
Collection of
RequestParameter entries.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetParameterByName(String name) Get the parameter for the given name.Get all unique parameter names.All parameters defined in the collection.booleanhasParameter(String name) Check if the collection contains the parameter with the given name.static RequestParametersBuilderBuilder instance.intsize()Total number of request parameters contained.toString()
-
Constructor Details
-
RequestParameters
Constructor.- Parameters:
parameters- Parameters to add to the set.
-
-
Method Details
-
newBuilder
Builder instance.- Returns:
- new Builder instance.
-
getParameterNames
Get all unique parameter names.- Returns:
- All unique parameter names.
-
hasParameter
Check if the collection contains the parameter with the given name.- Parameters:
name- Name of parameter to check.- Returns:
- true if contained in the set, false if not.
-
getParameters
All parameters defined in the collection.- Returns:
- All parameters defined in the collection.
-
getParameterByName
Get the parameter for the given name.- Parameters:
name- Name of parameter to return.- Returns:
- The parameter named by the name argument.
- Throws:
IllegalArgumentException- if passed an invalid parameter name.
-
size
public int size()Total number of request parameters contained.- Returns:
- Total number of request parameters contained.
-
toString
-