@Beta public class TrieMatcher extends Object
TrieMatcher#replaceMultiple(String, TrieMatcher)| Modifier and Type | Method and Description |
|---|---|
boolean |
begins(CharSequence s) |
static TrieMatcher |
compile(List<String> strings,
List<String> replacements)
This is not the cheapest of operations.
|
static TrieMatcher |
compile(String[] strings,
String[] replacements)
This is not the cheapest of operations.
|
public static TrieMatcher compile(String[] strings, String[] replacements)
strings - this is the list of words that make up the Trie.
It is assumed that the lists are not modified once passed into the Triereplacements - the list of words that can be used to replace those words.
It is assumed that the lists are not modified once passed into the Triepublic static TrieMatcher compile(List<String> strings, List<String> replacements)
strings - this is the list of words that make up the Trie.
It is assumed that the lists are not modified once passed into the Triereplacements - the list of words that can be used to replace those words.
It is assumed that the lists are not modified once passed into the Triepublic boolean begins(CharSequence s)
s - the term to see if it starts with any terms of the trieCopyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.