Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

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

AlphaJumpBucketer

public class AlphaJumpBucketer
extends Object

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


A helper class for building the list of buckets for alpha jump.

Summary

Nested classes

class AlphaJumpBucketer.Bucket

A basic implementation of IAlphaJumpAdapter.Bucket

Public constructors

AlphaJumpBucketer()
AlphaJumpBucketer(Bucket[] buckets)

Public methods

Collection<IAlphaJumpAdapter.Bucket> createBuckets(Iterable<String> values)

Creates a collection of IAlphaJumpAdapter.Buckets from the given iterable collection of strings.

Collection<IAlphaJumpAdapter.Bucket> createBuckets(String[] values)

Creates a collection of IAlphaJumpAdapter.Buckets from the given list of strings.

Collection<IAlphaJumpAdapter.Bucket> createBuckets(Iterator<String> values)

Creates the collection of IAlphaJumpAdapter.Buckets from the given enumeration of values.

Inherited methods

Public constructors

AlphaJumpBucketer

public AlphaJumpBucketer ()

AlphaJumpBucketer

public AlphaJumpBucketer (Bucket[] buckets)

Parameters
buckets Bucket

Public methods

createBuckets

public Collection<IAlphaJumpAdapter.Bucket> createBuckets (Iterable<String> values)

Creates a collection of IAlphaJumpAdapter.Buckets from the given iterable collection of strings.

Parameters
values Iterable

Returns
Collection<IAlphaJumpAdapter.Bucket>

createBuckets

public Collection<IAlphaJumpAdapter.Bucket> createBuckets (String[] values)

Creates a collection of IAlphaJumpAdapter.Buckets from the given list of strings.

Parameters
values String

Returns
Collection<IAlphaJumpAdapter.Bucket>

createBuckets

public Collection<IAlphaJumpAdapter.Bucket> createBuckets (Iterator<String> values)

Creates the collection of IAlphaJumpAdapter.Buckets from the given enumeration of values.

Parameters
values Iterator

Returns
Collection<IAlphaJumpAdapter.Bucket>