public class StringsCompleter extends Object implements jline.console.completer.Completer
Constructor and Description |
---|
StringsCompleter()
Default constructor.
|
StringsCompleter(Collection<String> strings) |
StringsCompleter(String... strings) |
Modifier and Type | Method and Description |
---|---|
int |
complete(String buffer,
int cursor,
List<CharSequence> candidates) |
SortedSet<String> |
getStrings() |
void |
setStrings(SortedSet<String> strings) |
public StringsCompleter()
public StringsCompleter(Collection<String> strings)
strings
- The completer stringspublic StringsCompleter(String... strings)
strings
- The completer stringspublic void setStrings(SortedSet<String> strings)
strings
- The completer stringspublic int complete(String buffer, int cursor, List<CharSequence> candidates)
complete
in interface jline.console.completer.Completer