carrot / recycler-core

Multiple view type handling in RecyclerViews with 90% less tears
25 stars 1 forks source link

Discuss: Change adapter constructor params #48

Closed roideuniverse closed 7 years ago

roideuniverse commented 8 years ago

Currently the constructor is : RecyclerCoreAdapter(List modelList)

I was thinking what would be the consequences if replacing List with either Collection<E> or Iterable<E>, this would allow users to use any other data structure like set to be used as models, but it will also mean we will not have O(1) access to item as a given position.

Leaving this questions here as an open ended discussion.