Interface ValueCompleter
-
- All Known Subinterfaces:
CommandCompletionProvider
,ResourceKeyedValueParameter<T>
,ValueParameter<T>
,ValueParameter.Simple<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ValueCompleter
Defines the completions for a parameter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<CommandCompletion>
complete(CommandContext context, String currentInput)
Gets valid completions for this element, given the suppliedCommandContext
and current input for this element.
-
-
-
Method Detail
-
complete
List<CommandCompletion> complete(CommandContext context, String currentInput)
Gets valid completions for this element, given the suppliedCommandContext
and current input for this element.- Parameters:
context
- TheCommandContext
that contains the parsed argumentscurrentInput
- The current input for this argument- Returns:
- The list of values
-
-