DataMapItem

  • DataMapItem is a class that creates a dataItem-like object containing structured and serializable data.

  • The fromDataItem method is a static method that wraps a DataItem object in a DataMapItem, automatically freezing the DataItem.

  • The getDataMap method returns the DataMap associated with the DataMapItem.

  • The getUri method returns the Uri of the underlying DataItem.

public class DataMapItem extends Object

Creates a new dataItem-like object containing structured and serializable data.

Public Method Summary

static DataMapItem
fromDataItem ( DataItem dataItem)
Provides a DataMapItem wrapping a dataItem.
DataMap
getDataMap ()
Returns the DataMap .
Uri
getUri ()
Returns the underlying dataItem's Uri.

Inherited Method Summary

Public Methods

public static DataMapItem fromDataItem ( DataItem dataItem)

Provides a DataMapItem wrapping a dataItem.

A DataItem passed to this method does not need to be frozen ( Freezable.freeze() ), this method freezes the object.

Parameters
dataItem
the base for the wrapped DataMapItem . dataItem should not be modified after wrapping it.

public DataMap getDataMap ()

Returns the DataMap .

public Uri getUri ()

Returns the underlying dataItem's Uri.

Create a Mobile Website
View Site in Mobile | Classic
Share by: