V
- The Record value type is unused. It can be omitted for this class
if it was omitted for the AlphabeticIndex that built it.public static final class AlphabeticIndex.ImmutableIndex<V> extends Object implements 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 and 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(CharSequence name)
Finds the index bucket for the given name and returns the number of that bucket.
|
Iterator<AlphabeticIndex.Bucket<V>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public int getBucketCount()
public int getBucketIndex(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 Iterator<AlphabeticIndex.Bucket<V>> iterator()
iterator
in interface Iterable<AlphabeticIndex.Bucket<V>>
Copyright © 2016 Unicode, Inc. and others.