SectionedItemList
@CarProtocol
public final class SectionedItemList
Represents an ItemList that is contained inside a section.
Summary
Public methods |
|
|---|---|
static @NonNull SectionedItemList |
create(@NonNull ItemList itemList, @NonNull CharSequence sectionHeader)Creates an instance of a |
boolean |
|
@NonNull CarText |
Returns the title of the section. |
@NonNull ItemList |
Returns the |
int |
hashCode() |
@NonNull String |
toString() |
Public methods
create
Added in 1.0.0
public static @NonNull SectionedItemList create(@NonNull ItemList itemList, @NonNull CharSequence sectionHeader)
Creates an instance of a SectionedItemList with the given itemList and sectionHeader.
Only DistanceSpans and DurationSpans are supported in the section header.
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if |
getItemList
Added in 1.0.0
public @NonNull ItemList getItemList()
Returns the ItemList for the section.