mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Upload: Restrict generic type T to non-nullable types in BaseDelegateAdapter
This commit is contained in:
parent
5dd5eb37c3
commit
738b22d455
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ import androidx.recyclerview.widget.DiffUtil
|
||||||
import com.hannesdorfmann.adapterdelegates4.AdapterDelegate
|
import com.hannesdorfmann.adapterdelegates4.AdapterDelegate
|
||||||
import com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
|
import com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
|
||||||
|
|
||||||
abstract class BaseDelegateAdapter<T>(
|
abstract class BaseDelegateAdapter<T : Any>(
|
||||||
vararg delegates: AdapterDelegate<List<T>>,
|
vararg delegates: AdapterDelegate<List<T>>,
|
||||||
areItemsTheSame: (T, T) -> Boolean,
|
areItemsTheSame: (T, T) -> Boolean,
|
||||||
areContentsTheSame: (T, T) -> Boolean = { old, new -> old == new },
|
areContentsTheSame: (T, T) -> Boolean = { old, new -> old == new },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue