use of com.linkedin.restli.internal.common.BatchFinderCriteriaResultDecoder in project rest.li by linkedin.
the class BatchCollectionResponse method createCollectionFromDecoder.
private List<BatchFinderCriteriaResult<T>> createCollectionFromDecoder(BatchFinderCriteriaResultDecoder<T> decoder) {
DataList elements = this.data().getDataList(CollectionResponse.ELEMENTS);
List<BatchFinderCriteriaResult<T>> collection = elements.stream().map(obj -> decoder.makeValue((DataMap) obj)).collect(Collectors.toList());
return collection;
}
Aggregations