use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.dsbenchmark.rev150105.test.exec.outer.list.InnerListBuilder in project controller by opendaylight.
the class BaListBuilder method buildInnerList.
private static List<InnerList> buildInnerList(final int index, final int elements) {
List<InnerList> innerList = new ArrayList<>(elements);
final String itemStr = "Item-" + String.valueOf(index) + "-";
for (int i = 0; i < elements; i++) {
innerList.add(new InnerListBuilder().setKey(new InnerListKey(i)).setName(i).setValue(itemStr + String.valueOf(i)).build());
}
return innerList;
}
Aggregations