public final class Parameters extends Object
Constructor and Description |
---|
Parameters() |
Parameters(Parameters parameters) |
Modifier and Type | Method and Description |
---|---|
Object |
getValue(String name)
Gets a parameter's value.
|
Parameters |
setBoolean(String name,
boolean value)
Set a boolean value to the query parameter referenced by the given name.
|
Parameters |
setDate(String name,
Date value)
Set a date value to the query parameter referenced by the given name.
|
Parameters |
setDouble(String name,
double value)
Set a double value to the query parameter referenced by the given name.
|
Parameters |
setFloat(String name,
float value)
Set a float value to the query parameter referenced by the given name.
|
Parameters |
setInt(String name,
int value)
Set an int value to the query parameter referenced by the given name.
|
Parameters |
setLong(String name,
long value)
Set an long value to the query parameter referenced by the given name.
|
Parameters |
setNumber(String name,
Number value)
Set an Number value to the query parameter referenced by the given name.
|
Parameters |
setString(String name,
String value)
Set an String value to the query parameter referenced by the given name.
|
Parameters |
setValue(String name,
Object value)
Set a value to the query parameter referenced by the given name.
|
public Parameters()
public Parameters(Parameters parameters)
public Parameters setValue(String name, Object value)
name
- The parameter name.value
- The value.public Parameters setString(String name, String value)
name
- The parameter name.value
- The String value.public Parameters setNumber(String name, Number value)
name
- The parameter name.value
- The Number value.public Parameters setInt(String name, int value)
name
- The parameter name.value
- The int value.public Parameters setLong(String name, long value)
name
- The parameter name.value
- The long value.public Parameters setFloat(String name, float value)
name
- The parameter name.value
- The float value.public Parameters setDouble(String name, double value)
name
- The parameter name.value
- The double value.public Parameters setBoolean(String name, boolean value)
name
- The parameter name.value
- The boolean valuepublic Parameters setDate(String name, Date value)
name
- The parameter name.value
- The date value.