public final class

ConcatAdapter.Config.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.recyclerview.widget.ConcatAdapter.Config.Builder

Overview

The builder for ConcatAdapter.Config class.

Summary

Constructors
publicBuilder()

Methods
public ConcatAdapter.Configbuild()

public ConcatAdapter.Config.BuildersetIsolateViewTypes(boolean isolateViewTypes)

Sets whether ConcatAdapter should isolate view types of nested adapters from each other.

public ConcatAdapter.Config.BuildersetStableIdMode(ConcatAdapter.Config.StableIdMode stableIdMode)

Sets how the ConcatAdapter should handle stable ids (RecyclerView.Adapter.hasStableIds()).

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public ConcatAdapter.Config.Builder setIsolateViewTypes(boolean isolateViewTypes)

Sets whether ConcatAdapter should isolate view types of nested adapters from each other.

Parameters:

isolateViewTypes: true if ConcatAdapter should override view types of nested adapters to avoid view type conflicts, false otherwise. Defaults to ConcatAdapter.Config.DEFAULT's ConcatAdapter.Config.isolateViewTypes value (true).

Returns:

this

See also: ConcatAdapter.Config.isolateViewTypes

Sets how the ConcatAdapter should handle stable ids (RecyclerView.Adapter.hasStableIds()). See documentation in ConcatAdapter.Config.stableIdMode for details.

Parameters:

stableIdMode: The stable id mode for the ConcatAdapter. Defaults to ConcatAdapter.Config.DEFAULT's ConcatAdapter.Config.stableIdMode value (ConcatAdapter.Config.StableIdMode.NO_STABLE_IDS).

Returns:

this

See also: ConcatAdapter.Config.stableIdMode

public ConcatAdapter.Config build()

Returns:

A new instance of ConcatAdapter.Config with the given parameters.