package com.ustadmobile.port.android.view.ext;

import java.lang.System;

@kotlin.Metadata(mv = {1, 6, 0}, k = 2, d1 = {"\u0000\u001e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a;\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\u00020\u00032\b\u0010\u0004\u001a\u0004\u0018\u0001H\u00022\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00020\u00062\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u0002H\u00020\b\u00a2\u0006\u0002\u0010\t\u00a8\u0006\n"}, d2 = {"setSelectedIfInList", "", "T", "Landroid/view/View;", "item", "selectedItemsList", "", "differ", "Landroidx/recyclerview/widget/DiffUtil$ItemCallback;", "(Landroid/view/View;Ljava/lang/Object;Ljava/util/List;Landroidx/recyclerview/widget/DiffUtil$ItemCallback;)V", "app-android_debug"})
public final class ViewExtKt {
    
    /**
     * This is a convenience extension function to help manage selectable items that are in a
     * recyclerview.
     *
     * It will use the DiffUtil.Itemcallback so it can quickly determine if a given item is selected (e.g.
     * the ItemCallback areItemsTheSame will consider only the primary key, not the rest of the object)
     *
     * @param item The item to look for
     * @param selectedItemsList The list of those items that are selected
     * @param differ The ItemCallback used with the recyclerview
     */
    public static final <T extends java.lang.Object>void setSelectedIfInList(@org.jetbrains.annotations.NotNull()
    android.view.View $this$setSelectedIfInList, @org.jetbrains.annotations.Nullable()
    T item, @org.jetbrains.annotations.NotNull()
    java.util.List<? extends T> selectedItemsList, @org.jetbrains.annotations.NotNull()
    androidx.recyclerview.widget.DiffUtil.ItemCallback<T> differ) {
    }
}