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.
Currently the constructor is :
RecyclerCoreAdapter(List modelList)
I was thinking what would be the consequences if replacing
List
with eitherCollection<E>
orIterable<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.