| java.lang.Object com.ibm.icu.impl.TextTrieMap
TextTrieMap | public class TextTrieMap (Code) | | TextTrieMap is a trie implementation for supporting
fast prefix match for the key.
|
Constructor Summary | |
public | TextTrieMap(boolean ignoreCase) Costructs a TextTrieMap object. |
Method Summary | |
public Object | get(String text) Gets the object associated with the longest prefix
matching string key.
Parameters: text - The text to be matched with prefixes. | public Object | get(String text, int start) Gets the object associated with the longest prefix
matching string key starting at the specified position. | public synchronized Object | put(String text, Object o) Adds the text key and its associated object in this object.
Parameters: text - The text. Parameters: o - The object associated with the text. |
ignoreCase | boolean ignoreCase(Code) | | |
TextTrieMap | public TextTrieMap(boolean ignoreCase)(Code) | | Costructs a TextTrieMap object.
Parameters: ignoreCase - true to use case insensitive match |
get | public Object get(String text)(Code) | | Gets the object associated with the longest prefix
matching string key.
Parameters: text - The text to be matched with prefixes. The object associated with the longet prefix matchingmatching key, or null if no matching entry is found. |
get | public Object get(String text, int start)(Code) | | Gets the object associated with the longest prefix
matching string key starting at the specified position.
Parameters: text - The text to be matched with prefixes. Parameters: start - The start index of of the text The object associated with the longet prefix matchingmatching key, or null if no matching entry is found. |
put | public synchronized Object put(String text, Object o)(Code) | | Adds the text key and its associated object in this object.
Parameters: text - The text. Parameters: o - The object associated with the text. The previous value associated with specified text,or null if there was no mapping for the text. |
|
|