getValue method
- String fieldName
Returns the current value for the specified field.
fieldName
The field name as specified within the "Field List".
Throws IllegalArgumentException if the specified field is not part of the Subscription.
Returns The value of the specified field; it can be null in the following cases:
- a null value has been received from the Server, as null is a possible value for a field;
- no value has been received for the field yet;
- the item is subscribed to with the COMMAND mode and a DELETE command is received (only the fields used to carry key and command information are valued).
Implementation
String? getValue(String fieldName) {
return _fields[fieldName];
}