SectionedItemList

public final class SectionedItemList
extends Object

java.lang.Object
   ↳ androidx.car.app.model.SectionedItemList


Represents an ItemList that is contained inside a section, for internal use only.

Summary

Public methods

static SectionedItemList create(ItemList itemList, CharSequence sectionHeader)

Creates an instance of a SectionedItemList with the given itemList and sectionHeader.

boolean equals(Object other)
CarText getHeader()

Returns the title of the section.

ItemList getItemList()

Returns the ItemList for the section.

int hashCode()
String toString()

Inherited methods

Public methods

create

public static SectionedItemList create (ItemList itemList, 
                CharSequence sectionHeader)

Creates an instance of a SectionedItemList with the given itemList and sectionHeader.

Only DistanceSpans and DurationSpans are supported in the section header.

Parameters
itemList ItemList

sectionHeader