new Parameter()
Methods
-
equals(parameter){boolean}
-
Compares this instance with the given one.
Name Type Description parameter
Parameter Parameter that should be compared.
Returns:
Type Description boolean -
getKey(){string}
-
Returns the key.
Returns:
Type Description string -
getValue(){string}
-
Returns the value.
Returns:
Type Description string -
setKey(newKey)
-
Sets the key.
Name Type Description newKey
string Key
-
setValue(newValue)
-
Sets the value.
Name Type Description newValue
string Value
-
toString()
-
Returns a description of the parameter. Format: [ParameterName:ParameterValue]
Example
[CP_UNIT:KILOMETERS]
-
withKey(key){Parameter}
-
Builder for key.
Name Type Description key
String Key
Returns:
Type Description Parameter -
withValue(value){Parameter}
-
Builder for value.
Name Type Description value
String Value
Returns:
Type Description Parameter