public class DefaultDataObject<E> extends Object implements DataObject<E>
DataObject interface. Holds an item and a MetaData.| Constructor and Description |
|---|
DefaultDataObject(E item)
Construct a new data object for the specified item.
|
DefaultDataObject(E item,
MetaData metaData)
Construct a new data object for the specified item and meta data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
E |
getItem()
Get the item
|
<T> T |
getMeta(Class<T> type)
Get the strongly typed meta data instance for the specified type.
|
MetaData |
getMetaData()
Get the meta data instance for the item
|
int |
hashCode() |
public DefaultDataObject(E item)
item - the itempublic E getItem()
DataObjectgetItem in interface DataObject<E>public MetaData getMetaData()
DataObjectgetMetaData in interface DataObject<E>public <T> T getMeta(Class<T> type)
DataObjectgetMeta in interface DataObject<E>T - The type of the meta datatype - The type of the meta data requiredCopyright © 2017 SAP SE. All Rights Reserved.