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 Details

    • complete

      List<CommandCompletion> complete(CommandContext context, String currentInput)
      Gets valid completions for this element, given the supplied CommandContext and current input for this element.
      Parameters:
      context - The CommandContext that contains the parsed arguments
      currentInput - The current input for this argument
      Returns:
      The list of values