setValueAsNumeric
The setValueAsNumeric method defines the value of a NameValuePair object.
setValueAsNumeric(valueAsNumeric)
- valueAsNumeric-a double containing the numeric value of a NameValuePair object.
Return value
None.
Example
The following example shows how to define the value component of a NameValuePair if the value is a numeric.
NameValuePair parm4 = new NameValuePairImpl();
parm4.setName("FlashEnabled");
parm4.setValueAsNumeric(1.0);
parm4.setValueDataType(NameValuePair.DATA_TYPE_NUMERIC);