You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could simplify the interface for adding new messages (instead of AddToEnd and AddToStart, there's just Add) and always ensure the proper order, if the backing store doesn't always return messages in the correct order.
I believe the type would look like SortedList<Wrapper>, and the callback for SortedList would call compare() on Wrapper.data, and equal() on Wrapper.data.
It would require, however, implementors of IMessage to implement compare() and equals() for that to work properly.
The text was updated successfully, but these errors were encountered:
This could simplify the interface for adding new messages (instead of AddToEnd and AddToStart, there's just Add) and always ensure the proper order, if the backing store doesn't always return messages in the correct order.
I believe the type would look like SortedList<Wrapper>, and the callback for SortedList would call compare() on Wrapper.data, and equal() on Wrapper.data.
It would require, however, implementors of IMessage to implement compare() and equals() for that to work properly.
The text was updated successfully, but these errors were encountered: