|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.icu.util.StringTrieBuilder
com.ibm.icu.util.CharsTrieBuilder
public final class CharsTrieBuilder
Builder class for CharsTrie.
This class is not intended for public subclassing.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ibm.icu.util.StringTrieBuilder |
|---|
StringTrieBuilder.Option |
| Field Summary |
|---|
| Fields inherited from class com.ibm.icu.util.StringTrieBuilder |
|---|
strings |
| Constructor Summary | |
|---|---|
CharsTrieBuilder()
Constructs an empty builder. |
|
| Method Summary | |
|---|---|
CharsTrieBuilder |
add(CharSequence s,
int value)
Adds a (string, value) pair. |
CharsTrie |
build(StringTrieBuilder.Option buildOption)
Builds a CharsTrie for the add()ed data. |
CharSequence |
buildCharSequence(StringTrieBuilder.Option buildOption)
Builds a CharsTrie for the add()ed data and char-serializes it. |
CharsTrieBuilder |
clear()
Removes all (string, value) pairs. |
protected int |
getMaxBranchLinearSubNodeLength()
Deprecated. This API is ICU internal only. |
protected int |
getMaxLinearMatchLength()
Deprecated. This API is ICU internal only. |
protected int |
getMinLinearMatch()
Deprecated. This API is ICU internal only. |
protected boolean |
matchNodesCanHaveValues()
Deprecated. This API is ICU internal only. |
protected int |
write(int unit)
Deprecated. This API is ICU internal only. |
protected int |
write(int offset,
int length)
Deprecated. This API is ICU internal only. |
protected int |
writeDeltaTo(int jumpTarget)
Deprecated. This API is ICU internal only. |
protected int |
writeValueAndFinal(int i,
boolean isFinal)
Deprecated. This API is ICU internal only. |
protected int |
writeValueAndType(boolean hasValue,
int value,
int node)
Deprecated. This API is ICU internal only. |
| Methods inherited from class com.ibm.icu.util.StringTrieBuilder |
|---|
addImpl, buildImpl, clearImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CharsTrieBuilder()
| Method Detail |
|---|
public CharsTrieBuilder add(CharSequence s,
int value)
s - The input string.value - The value associated with this char sequence.
public CharsTrie build(StringTrieBuilder.Option buildOption)
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.
buildOption - Build option, see StringTrieBuilder.Option.
public CharSequence buildCharSequence(StringTrieBuilder.Option buildOption)
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.
buildOption - Build option, see StringTrieBuilder.Option.
public CharsTrieBuilder clear()
protected boolean matchNodesCanHaveValues()
matchNodesCanHaveValues in class StringTrieBuilderprotected int getMaxBranchLinearSubNodeLength()
getMaxBranchLinearSubNodeLength in class StringTrieBuilderprotected int getMinLinearMatch()
getMinLinearMatch in class StringTrieBuilderprotected int getMaxLinearMatchLength()
getMaxLinearMatchLength in class StringTrieBuilderprotected int write(int unit)
write in class StringTrieBuilder
protected int write(int offset,
int length)
write in class StringTrieBuilder
protected int writeValueAndFinal(int i,
boolean isFinal)
writeValueAndFinal in class StringTrieBuilder
protected int writeValueAndType(boolean hasValue,
int value,
int node)
writeValueAndType in class StringTrieBuilderprotected int writeDeltaTo(int jumpTarget)
writeDeltaTo in class StringTrieBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||