This class is not intended for public subclassing.
| Modifier and Type | Field and Description |
|---|---|
| private char[] | |
| private int | |
| private final char[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CharsTrieBuilder | Returns: thisThe input string. s, int The value associated with this char sequence. value)Adds a (string, value) pair. |
| public CharsTrie | Returns: A new CharsTrie for the add()ed data.Build option, see StringTrieBuilder.Option. buildOptionBuilds a CharsTrie for the add()ed data. |
| private void | |
| public CharSequence | Returns: A CharSequence with the char-serialized CharsTrie for the add()ed data.Build option, see StringTrieBuilder.Option. buildOptionBuilds a CharsTrie for the add()ed data and char-serializes it. |
| public CharsTrieBuilder | |
| private void | |
| protected int | getMaxBranchLinearSubNodeLength()
Implements abstract com.
Deprecated
This API is ICU internal only.
|
| protected int | getMaxLinearMatchLength()
Implements abstract com.
Deprecated
This API is ICU internal only.
|
| protected int | getMinLinearMatch()
Implements abstract com.
Deprecated
This API is ICU internal only.
|
| protected boolean | matchNodesCanHaveValues()
Implements abstract com.
Deprecated
This API is ICU internal only.
|
| protected int | write(int unit)
Implements abstract com.
Deprecated
This API is ICU internal only.
|
| protected int | write(int offset, int length)
Implements abstract com.
Deprecated
This API is ICU internal only.
|
| private int | |
| protected int | writeDeltaTo(int jumpTarget)
Implements abstract com.
Deprecated
This API is ICU internal only.
|
| protected int | writeValueAndFinal(int i, boolean isFinal)
Implements abstract com.
Deprecated
This API is ICU internal only.
|
| protected int | writeValueAndType(boolean hasValue, int value, int node)
Implements abstract com.
Deprecated
This API is ICU internal only.
|
| chars | back to summary |
|---|---|
| private char[] chars | |
| charsLength | back to summary |
|---|---|
| private int charsLength | |
| intUnits | back to summary |
|---|---|
| private final char[] intUnits | |
| CharsTrieBuilder | back to summary |
|---|---|
| public CharsTrieBuilder() Constructs an empty builder.
| |
| add | back to summary |
|---|---|
| public CharsTrieBuilder add(CharSequence s, int value) Adds a (string, value) pair. The string must be unique. The string contents will be copied; the builder does not keep a reference to the input CharSequence.
| |
| build | back to summary |
|---|---|
| public CharsTrie build(StringTrieBuilder. Builds a CharsTrie for the add()ed data. Once built, no further data can be add()ed until clear() is called. A CharsTrie cannot be empty. At least one (string, value) pair must have been add()ed. Multiple calls to build() or buildCharSequence() return tries or sequences which share the builder's char array, without rebuilding. After clear() has been called, a new array will be used.
| |
| buildChars | back to summary |
|---|---|
| private void buildChars(StringTrieBuilder. | |
| buildCharSequence | back to summary |
|---|---|
| public CharSequence buildCharSequence(StringTrieBuilder. Builds a CharsTrie for the add()ed data and char-serializes it. Once built, no further data can be add()ed until clear() is called. A CharsTrie cannot be empty. At least one (string, value) pair must have been add()ed. Multiple calls to build() or buildCharSequence() return tries or sequences which share the builder's char array, without rebuilding. After clear() has been called, a new array will be used.
| |
| clear | back to summary |
|---|---|
| public CharsTrieBuilder clear() Removes all (string, value) pairs. New data can then be add()ed and a new trie can be built.
| |
| ensureCapacity | back to summary |
|---|---|
| private void ensureCapacity(int length) | |
| getMaxBranchLinearSubNodeLength | back to summary |
|---|---|
| protected int getMaxBranchLinearSubNodeLength() Implements abstract com. Deprecated This API is ICU internal only.
| |
| getMaxLinearMatchLength | back to summary |
|---|---|
| protected int getMaxLinearMatchLength() Implements abstract com. Deprecated This API is ICU internal only.
| |
| getMinLinearMatch | back to summary |
|---|---|
| protected int getMinLinearMatch() Implements abstract com. Deprecated This API is ICU internal only.
| |
| matchNodesCanHaveValues | back to summary |
|---|---|
| protected boolean matchNodesCanHaveValues() Implements abstract com. Deprecated This API is ICU internal only.
| |
| write | back to summary |
|---|---|
| protected int write(int unit) Implements abstract com. Deprecated This API is ICU internal only.
| |
| write | back to summary |
|---|---|
| protected int write(int offset, int length) Implements abstract com. Deprecated This API is ICU internal only.
| |
| write | back to summary |
|---|---|
| private int write(char[] s, int length) | |
| writeDeltaTo | back to summary |
|---|---|
| protected int writeDeltaTo(int jumpTarget) Implements abstract com. Deprecated This API is ICU internal only.
| |
| writeValueAndFinal | back to summary |
|---|---|
| protected int writeValueAndFinal(int i, boolean isFinal) Implements abstract com. Deprecated This API is ICU internal only.
| |
| writeValueAndType | back to summary |
|---|---|
| protected int writeValueAndType(boolean hasValue, int value, int node) Implements abstract com. Deprecated This API is ICU internal only.
| |