@Override public void onNewItems(@NonNull List<Model> newItems, int page) { mModelAdapter.add(newItems); } }
/** * add an array of items to the end of the existing items * * @param items the items to add */ @SafeVarargs public final ModelAdapter<Model, Item> add(Model... items) { return add(asList(items)); }
/** * add an array of items at the given position within the existing items * * @param position the global position * @param items the items to add */ @SafeVarargs public final ModelAdapter<Model, Item> add(int position, Model... items) { return add(position, asList(items)); }
itemAdapter.add(models);
itemAdapter.add(models);