Package autocomplete
Interface Autocomplete
-
- All Known Implementing Classes:
BinarySearchAutocomplete
,SequentialSearchAutocomplete
,TernarySearchTreeAutocomplete
,TreeSetAutocomplete
public interface Autocomplete
Suggest exact-character prefix matches for any queryCharSequence
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAll(Collection<? extends CharSequence> terms)
Adds the given collection of autocompletion terms.List<CharSequence>
allMatches(CharSequence prefix)
Returns all autocompletion terms that match the given prefix.
-
-
-
Method Detail
-
addAll
void addAll(Collection<? extends CharSequence> terms)
Adds the given collection of autocompletion terms.- Parameters:
terms
- collection containing elements to be added.
-
allMatches
List<CharSequence> allMatches(CharSequence prefix)
Returns all autocompletion terms that match the given prefix.- Parameters:
prefix
- search query.
-
-