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 AlphaJumpBucket

Public constructors

AlphaJumpBucketer()
AlphaJumpBucketer(Bucket[] buckets)

Public methods

List<AlphaJumpBucket> createBuckets(Iterable<String> values)

Creates a list of AlphaJumpBuckets from the given iterable collection of strings.

List<AlphaJumpBucket> createBuckets(String[] values)

Creates a list of AlphaJumpBuckets from the given list of strings.

List<AlphaJumpBucket> createBuckets(Iterator<String> values)

Creates a list of AlphaJumpBuckets 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 List<AlphaJumpBucket> createBuckets (Iterable<String> values)

Creates a list of AlphaJumpBuckets from the given iterable collection of strings.

Parameters
values Iterable

Returns
List<AlphaJumpBucket>

createBuckets

public List<AlphaJumpBucket> createBuckets (String[] values)

Creates a list of AlphaJumpBuckets from the given list of strings.

Parameters
values String

Returns
List<AlphaJumpBucket>

createBuckets

public List<AlphaJumpBucket> createBuckets (Iterator<String> values)

Creates a list of AlphaJumpBuckets from the given enumeration of values.

Parameters
values Iterator

Returns
List<AlphaJumpBucket>