Commented Code
Map<String, Object> result = new HashMap<>();
if (numItems < 0) {
numItems = 0; // use -1 to get all without limit
} else if (numItems == 0) {
numItems = 10; // default to max of 20 items in a list
}Last updated
Map<String, Object> result = new HashMap<>();
if (numItems < 0) {
numItems = 0; // use -1 to get all without limit
} else if (numItems == 0) {
numItems = 10; // default to max of 20 items in a list
}Last updated