Most visited

Recently visited

Added in API level 24

AlphabeticIndex.Bucket

public static class AlphabeticIndex.Bucket
extends Object implements Iterable<Record<V>>

java.lang.Object
   ↳ android.icu.text.AlphabeticIndex.Bucket<V>


带有标签字符串和类型的索引“存储桶”。 它是通过引用getBucketIndex(CharSequence)getBucketIndex(CharSequence) ,由归国getBucket(int) ,并addRecord(CharSequence, Object)根据记录的名称将记录到一个桶里。

Summary

Nested classes

枚举 AlphabeticIndex.Bucket.LabelType

标签的类型

Public methods

String getLabel()

获取标签

AlphabeticIndex.Bucket.LabelType getLabelType()

是正常,下溢,溢出或流入桶

Iterator<Record<V>> iterator()

迭代器遍历桶中的记录

int size()

获取存储桶中的记录数。

String toString()

标准toString()

Inherited methods

From class java.lang.Object
From interface java.lang.Iterable

Public methods

getLabel

Added in API level 24
String getLabel ()

获取标签

Returns
String label for the bucket

getLabelType

Added in API level 24
AlphabeticIndex.Bucket.LabelType getLabelType ()

是正常,下溢,溢出或流入桶

Returns
AlphabeticIndex.Bucket.LabelType is an underflow, overflow, or inflow bucket

iterator

Added in API level 24
Iterator<Record<V>> iterator ()

迭代器遍历桶中的记录

Returns
Iterator<Record<V>> an Iterator.

size

Added in API level 24
int size ()

获取存储桶中的记录数。

Returns
int number of records in bucket

toString

Added in API level 24
String toString ()

标准toString()

Returns
String a string representation of the object.

Hooray!