public interface Parameters
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String name)
Indicates whether the parameters for the given name has a value.
|
String |
getValue(String name)
Returns the value for the specified parameter.
|
String[] |
getValues(String name)
Returns the values for the specified parameter.
|
boolean |
hasValue(String name)
Indicates whether the parameters for the given name has a value.
|
Set<String> |
names()
Returns the set of parameter names as an unmodifiable set.
|
void |
set(String name,
String value)
Set a parameter with only one value.
|
void |
set(String name,
String[] values)
Set a parameter with only multiple values.
|
String getValue(String name)
name - The name of the parameter.null if not specified.String[] getValues(String name)
name - The name of the parameter.null if not specified.boolean exists(String name)
name - The name of the parameter.true if it has a value; false otherwise.boolean hasValue(String name)
A parameter has a value if:
name - The name of the parameter.true if it has a value;
false otherwise.Set<String> names()
void set(String name, String value)
name - The name of the parameter.value - The value.Copyright © 2021. All rights reserved.