Google is committed to advancing racial equity for Black communities. See how.

DataEvent

public interface DataEvent implements Freezable<DataEvent>

Data interface for data events.

Constant Summary

int TYPE_CHANGED Indicates that the enclosing DataEvent was triggered by a data item being added or changed.
int TYPE_DELETED Indicates that the enclosing DataEvent was triggered by a data item being deleted.

Public Method Summary

abstract DataItem
getDataItem()
Returns the data item modified in this event.
abstract int
getType()
Returns the type of event this is.

Inherited Method Summary

Constants

public static final int TYPE_CHANGED

Indicates that the enclosing DataEvent was triggered by a data item being added or changed.

Constant Value: 1

public static final int TYPE_DELETED

Indicates that the enclosing DataEvent was triggered by a data item being deleted.

Constant Value: 2

Public Methods

public abstract DataItem getDataItem ()

Returns the data item modified in this event. An event of TYPE_DELETED will only have its {@linkplain DataItem#getUri() URI} populated.

public abstract int getType ()

Returns the type of event this is. One of TYPE_CHANGED, TYPE_DELETED.