lightbulb_outline Please take our October 2018 developer survey. Start survey

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

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

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