public class RestModelMapper extends Object implements ResponseMapper<RestModel>
| Constructor and Description |
|---|
RestModelMapper(GraphEntityMapper graphEntityMapper,
MetaData metaData) |
| Modifier and Type | Method and Description |
|---|---|
<T> Iterable<T> |
map(Class<T> type,
Response<RestModel> response)
Maps the data representation in the given response onto instances of
T. |
public RestModelMapper(GraphEntityMapper graphEntityMapper, MetaData metaData)
public <T> Iterable<T> map(Class<T> type, Response<RestModel> response)
ResponseMapperT.map in interface ResponseMapper<RestModel>T - type of the resulttype - The Class defining the type to which each entities in the response should be mappedresponse - The Response object containing the data to map onto the objectsIterable of type T containing relevant data extracted from the responseCopyright © 2018 Neo Technology, Inc.. All rights reserved.