Package com.gengoai.hermes.lexicon
Interface PrefixSearchable
-
- All Known Implementing Classes:
DiskLexicon
,Lexicon
,PersistentLexicon
,TrieLexicon
,TrieWordList
public interface PrefixSearchable
Interface defining a lexicon or word list that can be searched using prefixes- Author:
- David B. Bracewell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isPrefixMatch(HString hString)
Check if a prefix matches the givenHString
boolean
isPrefixMatch(String hString)
Check if a prefix matches the given StringSet<String>
prefixes(String string)
Gets the prefixes that match the given string
-
-
-
Method Detail
-
isPrefixMatch
boolean isPrefixMatch(HString hString)
Check if a prefix matches the givenHString
- Parameters:
hString
- theHString
to check for a prefix match- Returns:
- True if a prefix matches, False otherwise
-
isPrefixMatch
boolean isPrefixMatch(String hString)
Check if a prefix matches the given String- Parameters:
hString
- the String to check for a prefix match- Returns:
- True if a prefix matches, False otherwise
-
-