Interface ChoicesParser<P extends @NonNull Object,T extends @NonNull Object>

Type Parameters:
P - The primitive type to be parsed.
T - The type of argument that is provided.
All Superinterfaces:
ArgumentParser<P,T>, BiFunction<CommandContext,P,Mono<T>>, InputParser<P,T>, ParserFunction<P,T>
All Known Subinterfaces:
FloatParser<T>, IntegerParser<T>, ListParser<T>, NumberParser<P,T>, StringParser<T>

public sealed interface ChoicesParser<P extends @NonNull Object,T extends @NonNull Object> extends InputParser<P,T> permits StringParser<T>, NumberParser<P,T>
Parses received input arguments, potentially restricting the acceptable values to a set of choices.
Since:
1.0
Version:
1.0
API Note:
Implementations do not have to verify in parsing that the received raw value is one of the valid choices. The system will automatically do this verification before invoking the parser.