Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

AlphaJumpBucketer.Bucket

public static class AlphaJumpBucketer.Bucket
extends Object implements AlphaJumpBucket

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


A basic implementation of AlphaJumpBucket.

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

public int getIndex ()

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

Returns
int

getLabel

public CharSequence getLabel ()

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

Returns
CharSequence

isEmpty

public boolean isEmpty ()

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

Returns
boolean