Package autocomplete
Class SequentialSearchAutocomplete
- java.lang.Object
- 
- autocomplete.SequentialSearchAutocomplete
 
- 
- All Implemented Interfaces:
- Autocomplete
 
 public class SequentialSearchAutocomplete extends Object implements Autocomplete Sequential search implementation of theAutocompleteinterface.- See Also:
- Autocomplete
 
- 
- 
Field SummaryFields Modifier and Type Field Description private List<CharSequence>termsListof added autocompletion terms.
 - 
Constructor SummaryConstructors Constructor Description SequentialSearchAutocomplete()Constructs an empty instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAll(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.
 
- 
- 
- 
Field Detail- 
termsprivate final List<CharSequence> terms Listof added autocompletion terms.
 
- 
 - 
Method Detail- 
addAllpublic void addAll(Collection<? extends CharSequence> terms) Description copied from interface:AutocompleteAdds the given collection of autocompletion terms.- Specified by:
- addAllin interface- Autocomplete
- Parameters:
- terms- collection containing elements to be added.
 
 - 
allMatchespublic List<CharSequence> allMatches(CharSequence prefix) Description copied from interface:AutocompleteReturns all autocompletion terms that match the given prefix.- Specified by:
- allMatchesin interface- Autocomplete
- Parameters:
- prefix- search query.
 
 
- 
 
-