Hi guys,
I have a question about the SortedListModel. If you look at the
setItems(Collection<T> value) method. You will notice that eventually all the
items are added to a SortedSet. This is not a problem if all the elements of
your collection are different. But what happens if the elements of your
collection are not all different. More specifically if I pass in a comparator
that matches on a field of the object that is not different like description, or
size or something of that nature.
The set will reduce the number of elements. Before I change it to be a list
that can have duplicates, I would like to know the origin of the set and if
there are going to be any issues when I do that.
Thanks,
Alexander