areItemsTheSame

abstract fun areItemsTheSame(item1: T2, item2: T2): Boolean(source)

Called by the SortedList to decide whether two objects represent the same Item or not.

For example, if your items have unique ids, this method should check their equality.

Return

True if the two items represent the same object or false if they are different.

Parameters

item1

The first item to check.

item2

The second item to check.