Android 12 Developer Preview is here! Try it out, and give us your feedback!

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.

Parameters
itemList ItemList

sectionHeader CharSequence

Returns
SectionedItemList

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getHeader

public CarText getHeader ()

Returns the title of the section.

Returns
CarText

getItemList

public ItemList getItemList ()

Returns the ItemList for the section.

Returns
ItemList

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String