Type Parameters:
T - The type of the data this binder will receive.
Q - The type of the query this binder will receive.
VH - The type of the dynamic recycler view binder.
Direct Known Subclasses:
EmptyBinder, InfoBinder

public abstract class DynamicQueryBinder<T,Q,VH extends RecyclerView.ViewHolder> extends DynamicDataBinder<T,VH>
A DynamicDataBinder to bind the generic data with query that can be used with the DynamicBinderAdapter.
  • Constructor Details

    • DynamicQueryBinder

      public DynamicQueryBinder(@NonNull DynamicBinderAdapter<?> binderAdapter)
      Constructor to initialize an object of this class.
      Parameters:
      binderAdapter - The dynamic binder adapter for the recycler view.
  • Method Details

    • setData

      public void setData(@Nullable T data, @Nullable Q query)
      Set the data and query for this binder.
      Parameters:
      data - The data to be set.
      query - The query to be set.
    • getQuery

      @Nullable public Q getQuery()
      Get the query used by this binder.
      Returns:
      The query used by this binder.
    • setQuery

      public void setQuery(@Nullable Q query)
      Set the query for this binder.
      Parameters:
      query - The query to be set.
    • initHighlightColor

      public void initHighlightColor()
      Initialize the highlight color for this binder.
    • getHighlightColor

      @ColorInt public int getHighlightColor()
      Get the highlight color used by this binder.
      Returns:
      The highlight color used by this binder.
    • setHighlightColor

      public void setHighlightColor(@ColorInt int highlightColor)
      Set the highlight color for this binder.
      Parameters:
      highlightColor - The highlight color to be set.