SelectionPredicates

public final class SelectionPredicates
extends Object

java.lang.Object
   ↳ androidx.recyclerview.selection.SelectionPredicates


Utility class for creating SelectionPredicate instances. Provides default implementations for common cases like "single selection" and "select anything".

Summary

Public methods

static <K> SelectionPredicate<K> createSelectAnything()

Returns a selection predicate that allows multiples items to be selected, without any restrictions on which items can be selected.

static <K> SelectionPredicate<K> createSelectSingleAnything()

Returns a selection predicate that allows a single item to be selected, without any restrictions on which item can be selected.

Inherited methods

Public methods

createSelectAnything

public static SelectionPredicate<K> createSelectAnything ()

Returns a selection predicate that allows multiples items to be selected, without any restrictions on which items can be selected.

Returns
SelectionPredicate<K>

createSelectSingleAnything

public static SelectionPredicate<K> createSelectSingleAnything ()

Returns a selection predicate that allows a single item to be selected, without any restrictions on which item can be selected.

Returns
SelectionPredicate<K>