/** * internal mapper to remember and add possible types for the RecyclerView * * @param items */ public void mapPossibleTypes(@Nullable Iterable<Item> items) { if (items != null && mFastAdapter != null) { for (Item item : items) { mFastAdapter.registerTypeInstance(item); } } } }
public ModelAdapter<Model, Item> setInternal(int position, Item item) { if (mUseIdDistributor) { getIdDistributor().checkId(item); } mItems.set(position, item, getFastAdapter().getPreItemCount(position)); mFastAdapter.registerTypeInstance(item); return this; }