car/src/main/java/androidx/car/widget/AlphaJumpBucketer.java
public Collection<IAlphaJumpAdapter.Bucket> createBuckets(Iterator<String> values) {
        int index = 0;
        while (values.hasNext()) {
            String value = values.next();
            for (Bucket bucket : mBuckets) {
                if (bucket.matchString(value, index)) {
                    break;
                }
            }
            index++;
        }
        ArrayList<IAlphaJumpAdapter.Bucket> buckets = new ArrayList<>();
        buckets.addAll(mBuckets);
        return buckets;
    }
/**
     * Creates the collection of {@link IAlphaJumpAdapter.Bucket}s from the given enumeration of
     * values.
     */
Creates the collection of  IAlphaJumpAdapter.Buckets from the given enumeration of
values.
Creates the collection of IAlphaJumpAdapter . Buckets from the given enumeration of values .
public Collection<IAlphaJumpAdapter.Bucket> createBuckets(Iterator<String> values) {
        int index = 0;
        while (values.hasNext()) {
            String value = values.next();
            for (Bucket bucket : mBuckets) {
                if (bucket.matchString(value, index)) {
                    break;
                }
            }
            index++;
        }
        ArrayList<IAlphaJumpAdapter.Bucket> buckets = new ArrayList<>();
        buckets.addAll(mBuckets);
        return buckets;
    }
public Collection < IAlphaJumpAdapter . Bucket > createBuckets ( Iterator < String > values ) { int index = 0 ; while ( values . hasNext ( ) ) { String value = values . next ( ) ; for ( Bucket bucket : mBuckets ) { if ( bucket . matchString ( value , index ) ) { break ; } } index ++ ; } ArrayList < IAlphaJumpAdapter . Bucket > buckets = new ArrayList < > ( ) ; buckets . addAll ( mBuckets ) ; return buckets ; }
Creates the collection of {@link IAlphaJumpAdapter.Bucket}s from the given enumeration of
 values.
Creates the collection of { @link IAlphaJumpAdapter . Bucket } s from the given enumeration of values .