SelectionPredicates


class SelectionPredicates

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

Summary

Public functions

java-static SelectionTracker.SelectionPredicate

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

java-static SelectionTracker.SelectionPredicate

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

Public functions

createSelectAnything

Added in 1.0.0
java-static fun  createSelectAnything(): SelectionTracker.SelectionPredicate

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

Parameters

Selection key type. @see StorageStrategy for supported types.

createSelectSingleAnything

Added in 1.0.0
java-static fun  createSelectSingleAnything(): SelectionTracker.SelectionPredicate

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

Parameters

Selection key type. @see StorageStrategy for supported types.