Package com.ibm.icu.util
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 class
private static class
private static final class
private static final class
private static final class
private static final class
private static class
static enum
Build options for BytesTrieBuilder and CharsTrieBuilder.private static final class
private static enum
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringTrieBuilder.ValueNode
private StringTrieBuilder.Node
private StringTrieBuilder.State
protected StringBuilder
Deprecated.This API is ICU internal only. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Deprecated.This API is ICU internal only. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addImpl
(CharSequence s, int value) Deprecated.This API is ICU internal only.protected final void
buildImpl
(StringTrieBuilder.Option buildOption) Deprecated.This API is ICU internal only.protected void
Deprecated.This API is ICU internal only.private StringTrieBuilder.ValueNode
createSuffixNode
(CharSequence s, int start, int sValue) protected abstract int
Deprecated.This API is ICU internal only.protected abstract int
Deprecated.This API is ICU internal only.protected abstract int
Deprecated.This API is ICU internal only.protected abstract boolean
Deprecated.This API is ICU internal only.private final StringTrieBuilder.ValueNode
registerFinalValue
(int value) Makes sure that there is only one unique FinalValueNode registered with this value.private final StringTrieBuilder.Node
registerNode
(StringTrieBuilder.Node newNode) Makes sure that there is only one unique node registered that is equivalent to newNode, unless BUILDING_FAST.protected abstract int
write
(int unit) Deprecated.This API is ICU internal only.protected abstract int
write
(int offset, int length) Deprecated.This API is ICU internal only.protected abstract int
writeDeltaTo
(int jumpTarget) Deprecated.This API is ICU internal only.protected abstract int
writeValueAndFinal
(int i, boolean isFinal) Deprecated.This API is ICU internal only.protected abstract int
writeValueAndType
(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.
-