Uses of Record Class
dev.sympho.modular_commands.api.command.parameter.parse.ChoicesParser.Choice
Packages that use ChoicesParser.Choice
Package
Description
Interfaces defining how received arguments are parsed.
-
Uses of ChoicesParser.Choice in dev.sympho.modular_commands.api.command.parameter.parse
Methods in dev.sympho.modular_commands.api.command.parameter.parse that return ChoicesParser.ChoiceModifier and TypeMethodDescriptionstatic <P extends @NonNull Object>
ChoicesParser.Choice<P>Creates a new choice.Methods in dev.sympho.modular_commands.api.command.parameter.parse that return types with arguments of type ChoicesParser.ChoiceModifier and TypeMethodDescriptiondefault @Nullable List<ChoicesParser.Choice<P>>ChoicesParser.choices()The allowed choices.Creates a new choice mapping.Methods in dev.sympho.modular_commands.api.command.parameter.parse with parameters of type ChoicesParser.ChoiceModifier and TypeMethodDescriptionstatic IntegerParser<Long>Parsers.integer(ChoicesParser.Choice<Long> @MinLen(1) ... choices) Creates a parser that receives plain integer values from within a set of choices.static FloatParser<Double>Parsers.number(ChoicesParser.Choice<Double> @MinLen(1) ... choices) Creates a parser that receives plain floating-point values from within a set of choices.static StringParser<String>Parsers.string(ChoicesParser.Choice<String> @MinLen(1) ... choices) Creates a parser that receives plain string values from within a set of choices.Method parameters in dev.sympho.modular_commands.api.command.parameter.parse with type arguments of type ChoicesParser.ChoiceModifier and TypeMethodDescriptionstatic <T extends @NonNull Object>
IntegerParser<T>Parsers.choiceInteger(@MinLen(1) List<Map.Entry<ChoicesParser.Choice<Long>, T>> choices) Creates a parser that receives a value from within a set of choices.static IntegerParser<Long>Parsers.integer(@MinLen(1) List<ChoicesParser.Choice<Long>> choices) Creates a parser that receives plain integer values from within a set of choices.static FloatParser<Double>Parsers.number(@MinLen(1) List<ChoicesParser.Choice<Double>> choices) Creates a parser that receives plain floating-point values from within a set of choices.static <T extends @NonNull Object>
FloatParser<T>Parsers.numberChoice(@MinLen(1) List<Map.Entry<ChoicesParser.Choice<Double>, T>> choices) Creates a parser that receives a value from within a set of choices.static StringParser<String>Parsers.string(@MinLen(1) List<ChoicesParser.Choice<String>> choices) Creates a parser that receives plain string values from within a set of choices.static <T extends @NonNull Object>
StringParser<T>Parsers.stringChoice(@MinLen(1) List<Map.Entry<ChoicesParser.Choice<String>, T>> choices) Creates a parser that receives a value from within a set of choices.