use of com.linkedin.restli.examples.defaults.api.HighLevelRecordWithDefault in project rest.li by linkedin.
the class FieldFillInDefaultResources method findRecords.
@Finder("findRecords")
public CollectionResult<HighLevelRecordWithDefault, LowLevelRecordWithDefault> findRecords(@QueryParam("noDefaultFieldA") Integer fieldA) {
final int total = 3;
List<HighLevelRecordWithDefault> elements = new ArrayList<>();
for (int i = 0; i < total; i++) {
HighLevelRecordWithDefault record = new HighLevelRecordWithDefault().setNoDefaultFieldA(fieldA);
elements.add(record);
}
LowLevelRecordWithDefault metadata = new LowLevelRecordWithDefault();
return new CollectionResult<>(elements, total, metadata);
}
Aggregations