V
- The Record value type is unused. It can be omitted for this class
if it was omitted for the AlphabeticIndex that built it.java.lang.Iterable<AlphabeticIndex.Bucket<V>>
public static final class AlphabeticIndex.ImmutableIndex<V> extends java.lang.Object implements java.lang.Iterable<AlphabeticIndex.Bucket<V>>
AlphabeticIndex
.
This class provides thread-safe methods for bucketing,
and random access to buckets and their properties,
but does not offer adding records to the index.Modifier and Type | Method | Description |
---|---|---|
AlphabeticIndex.Bucket<V> |
getBucket(int index) |
Returns the index-th bucket.
|
int |
getBucketCount() |
Returns the number of index buckets and labels, including underflow/inflow/overflow.
|
int |
getBucketIndex(java.lang.CharSequence name) |
Finds the index bucket for the given name and returns the number of that bucket.
|
java.util.Iterator<AlphabeticIndex.Bucket<V>> |
iterator() |
public int getBucketCount()
public int getBucketIndex(java.lang.CharSequence name)
getBucket(int)
to get the bucket's properties.name
- the string to be sorted into an index bucketpublic AlphabeticIndex.Bucket<V> getBucket(int index)
index
- bucket numberpublic java.util.Iterator<AlphabeticIndex.Bucket<V>> iterator()
iterator
in interface java.lang.Iterable<V>
Copyright ? 2016 Unicode, Inc. and others.