library / com.camerash.filterdrawer / RecyclerAdapterFilter

RecyclerAdapterFilter

interface RecyclerAdapterFilter<Data, Parent : ParentItem, Child : ChildItem>

Interface for implementation of filter logic used in FilterableRecyclerAdapter

Parameters

Data - Your custom data type that implements DiffItemCallback

Parent - Your custom parent type that extends ParentItem

Child - Your custom child type that extends ChildItem

Author
Camerash

See Also

FilterableRecyclerAdapter

Functions

filter

abstract fun filter(data: Data, parent: Parent, child: Child): Boolean

Called when filtering of data items happens

Inheritors

FilterableRecyclerAdapter

abstract class FilterableRecyclerAdapter<Data : DiffItemCallback<Data>, Parent : ParentItem, Child : ChildItem> : Adapter<ViewHolder>, OnChildSelectListener<Parent, Child>, RecyclerAdapterFilter<Data, Parent, Child>

Base implementation of RecyclerAdapter that is filterable by FilterDrawer