Demonstrates a sub-optimal approach to combining multiple items.
Item configuration = inn.newItem("tmp"); | |
for (int i=0; i<10; i++) | |
{ | |
Item singleItemConfig = inn.newItem("CAD", "add"); | |
singleItemConfig.setProperty("item_number", "Test " + i); | |
configuration.appendItem(singleItemConfig); | |
} | |
configuration.removeItem(configuration.getItemByIndex(0)); | |
Item res = configuration.apply(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment