Class StringTrieBuilder
java.lang.Object
com.ibm.icu.util.StringTrieBuilder
- Direct Known Subclasses:
BytesTrieBuilder, CharsTrieBuilder
Base class for string trie builder classes.
This class is not intended for public subclassing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static classprivate static final classprivate static final classprivate static final classprivate static final classprivate static classstatic enumBuild options for BytesTrieBuilder and CharsTrieBuilder.private static final classprivate static enumprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringTrieBuilder.ValueNodeprivate StringTrieBuilder.Nodeprivate StringTrieBuilder.Stateprotected StringBuilderDeprecated.This API is ICU internal only. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated.This API is ICU internal only. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddImpl(CharSequence s, int value) Deprecated.This API is ICU internal only.protected final voidbuildImpl(StringTrieBuilder.Option buildOption) Deprecated.This API is ICU internal only.protected voidDeprecated.This API is ICU internal only.private StringTrieBuilder.ValueNodecreateSuffixNode(CharSequence s, int start, int sValue) protected abstract intDeprecated.This API is ICU internal only.protected abstract intDeprecated.This API is ICU internal only.protected abstract intDeprecated.This API is ICU internal only.protected abstract booleanDeprecated.This API is ICU internal only.private final StringTrieBuilder.ValueNoderegisterFinalValue(int value) Makes sure that there is only one unique FinalValueNode registered with this value.private final StringTrieBuilder.NoderegisterNode(StringTrieBuilder.Node newNode) Makes sure that there is only one unique node registered that is equivalent to newNode, unless BUILDING_FAST.protected abstract intwrite(int unit) Deprecated.This API is ICU internal only.protected abstract intwrite(int offset, int length) Deprecated.This API is ICU internal only.protected abstract intwriteDeltaTo(int jumpTarget) Deprecated.This API is ICU internal only.protected abstract intwriteValueAndFinal(int i, boolean isFinal) Deprecated.This API is ICU internal only.protected abstract intwriteValueAndType(boolean hasValue, int value, int node) Deprecated.This API is ICU internal only.
-
Field Details
-
state
-
strings
Deprecated.This API is ICU internal only. -
root
-
nodes
-
lookupFinalValueNode
-
-
Constructor Details
-
StringTrieBuilder
Deprecated.This API is ICU internal only.
-
-
Method Details
-
addImpl
Deprecated.This API is ICU internal only. -
buildImpl
Deprecated.This API is ICU internal only. -
clearImpl
Deprecated.This API is ICU internal only. -
registerNode
Makes sure that there is only one unique node registered that is equivalent to newNode, unless BUILDING_FAST.- Parameters:
newNode- Input node. The builder takes ownership.- Returns:
- newNode if it is the first of its kind, or an equivalent node if newNode is a duplicate.
-
registerFinalValue
Makes sure that there is only one unique FinalValueNode registered with this value. Avoids creating a node if the value is a duplicate.- Parameters:
value- A final value.- Returns:
- A FinalValueNode with the given value.
-
createSuffixNode
-
matchNodesCanHaveValues
Deprecated.This API is ICU internal only. -
getMaxBranchLinearSubNodeLength
Deprecated.This API is ICU internal only. -
getMinLinearMatch
Deprecated.This API is ICU internal only. -
getMaxLinearMatchLength
Deprecated.This API is ICU internal only. -
write
Deprecated.This API is ICU internal only. -
write
Deprecated.This API is ICU internal only. -
writeValueAndFinal
Deprecated.This API is ICU internal only. -
writeValueAndType
Deprecated.This API is ICU internal only. -
writeDeltaTo
Deprecated.This API is ICU internal only.
-