Interface SuffixTrie
- All Superinterfaces:
PrefixTrie
- All Known Implementing Classes:
ReversePrefixTrie
An extension of the prefix trie. This structure can perform fast substring matches.
-
Method Summary
Methods inherited from interface com.abstractkamen.datastructures.api.trees.search.PrefixTrie
completeWords, contains, delete, insert, isPrefix, prettyString, size, startsWith
-
Method Details
-
endsWith
Try to find strings which end with suffix. Matching strings are always in arbitrary order.- Parameters:
suffix
- to look forlimit
- maximum number of found strings- Returns:
- collection of words with the same suffix
-
isSuffix
Checks if suffix is present in this trie.- Parameters:
suffix
- to check- Returns:
- true if suffix exists
-