belongs to Maven artifact androidx.car:car:1.0.0-alpha1

AlphaJumpBucketer.Bucket

public static class AlphaJumpBucketer.Bucket
extends Object implements IAlphaJumpAdapter.Bucket

java.lang.Object
   ↳ androidx.car.widget.AlphaJumpBucketer.Bucket


A basic implementation of IAlphaJumpAdapter.Bucket.

Summary

Public methods

int getIndex()

Return the index of the first item that this bucket matches in the list.

CharSequence getLabel()

Return the label for this bucket, that is displayed at the text to the user.

boolean isEmpty()

Return true if the bucket is empty (and therefore the button should be displayed disabled).

Inherited methods

Public methods

getIndex

int getIndex ()

Return the index of the first item that this bucket matches in the list.

Returns
int

getLabel

CharSequence getLabel ()

Return the label for this bucket, that is displayed at the text to the user.

Returns
CharSequence

isEmpty

boolean isEmpty ()

Return true if the bucket is empty (and therefore the button should be displayed disabled).

Returns
boolean