Package com.ibm.icu.impl
Class TextTrieMap.Node
- java.lang.Object
-
- com.ibm.icu.impl.TextTrieMap.Node
-
- Enclosing class:
- TextTrieMap<V>
private class TextTrieMap.Node extends java.lang.Object
Inner class representing a text node in the trie.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TextTrieMap.Node>
_children
private char[]
_text
private java.util.List<V>
_values
-
Constructor Summary
Constructors Modifier Constructor Description private
Node()
private
Node(char[] text, java.util.List<V> values, java.util.List<TextTrieMap.Node> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
add(char[] text, int offset, V value)
void
add(TextTrieMap.CharIterator chitr, V value)
private java.util.List<V>
addValue(java.util.List<V> list, V value)
int
charCount()
TextTrieMap.Node
findMatch(TextTrieMap.CharIterator chitr, TextTrieMap.Output output)
private int
lenMatches(char[] text, int offset)
private boolean
matchFollowing(TextTrieMap.CharIterator chitr, TextTrieMap.Output output)
void
putLeadCodePoints(UnicodeSet output)
private void
split(int offset)
java.util.Iterator<V>
values()
-
-
-
Field Detail
-
_text
private char[] _text
-
_values
private java.util.List<V> _values
-
_children
private java.util.List<TextTrieMap.Node> _children
-
-
Constructor Detail
-
Node
private Node()
-
Node
private Node(char[] text, java.util.List<V> values, java.util.List<TextTrieMap.Node> children)
-
-
Method Detail
-
charCount
public int charCount()
-
values
public java.util.Iterator<V> values()
-
add
public void add(TextTrieMap.CharIterator chitr, V value)
-
findMatch
public TextTrieMap.Node findMatch(TextTrieMap.CharIterator chitr, TextTrieMap.Output output)
-
putLeadCodePoints
public void putLeadCodePoints(UnicodeSet output)
-
add
private void add(char[] text, int offset, V value)
-
matchFollowing
private boolean matchFollowing(TextTrieMap.CharIterator chitr, TextTrieMap.Output output)
-
lenMatches
private int lenMatches(char[] text, int offset)
-
split
private void split(int offset)
-
-