com.lightstreamer.javameclient.midp
Class ExtendedItemUpdate

java.lang.Object
  extended by com.lightstreamer.javameclient.midp.SimpleItemUpdate
      extended by com.lightstreamer.javameclient.midp.ExtendedItemUpdate
Direct Known Subclasses:
ReusableExtendedItemUpdate

public class ExtendedItemUpdate
extends SimpleItemUpdate

Carries any update pertaining to an item. Changed and unchanged values are distinguished. This object is not reused by LSClient, so it can be freely stored by the application.


Method Summary
 java.lang.String getFieldNewValue(java.lang.String field)
          Inquiry method that gets the new value for a specified field, as received from the Server with the current update or ExtendedTableListener.UNCHANGED if the field is not changed.
 boolean isFieldChanged(java.lang.String field)
          Inquiry method to know whether the value for a field is changed after the reception of an update from the Server for an item.
 
Methods inherited from class com.lightstreamer.javameclient.midp.SimpleItemUpdate
getFieldNewValue, getNumFields, isFieldChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFieldNewValue

public java.lang.String getFieldNewValue(java.lang.String field)
Inquiry method that gets the new value for a specified field, as received from the Server with the current update or ExtendedTableListener.UNCHANGED if the field is not changed.

Parameters:
field - The name of the field.
Returns:
ExtendedTableListener.UNCHANGED if the value is unchanged; the received value otherwise.

isFieldChanged

public boolean isFieldChanged(java.lang.String field)
Inquiry method to know whether the value for a field is changed after the reception of an update from the Server for an item.

Parameters:
field - The name of the field.
Returns:
true if the value is changed; false otherwise.