Uses of Interface
dev.sympho.modular_commands.api.command.parameter.parse.IntegerParser
Packages that use IntegerParser
Package
Description
Interfaces defining how received arguments are parsed.
-
Uses of IntegerParser in dev.sympho.modular_commands.api.command.parameter.parse
Methods in dev.sympho.modular_commands.api.command.parameter.parse that return IntegerParserModifier 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 <T extends @NonNull Object>
IntegerParser<T>Parsers.choiceInteger
(Map.Entry<ChoicesParser.Choice<Long>, T> @MinLen(1) ... choices) Creates a parser that receives a value from within a set of choices.static IntegerParser<Long>
Parsers.integer()
Creates a parser that receives plain integer values.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 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 <T extends @NonNull Object>
IntegerParser<T>Parsers.integer
(ParserFunction<Long, T> parser) Creates a parser that uses the given function to parse received values.static IntegerParser<Long>
Parsers.integerAbove
(long minimum) Creates a parser that receives plain integer values, which must be at least the given value.static <T extends @NonNull Object>
IntegerParser<T>Parsers.integerAbove
(long minimum, ParserFunction<Long, T> parser) Creates a parser that uses the given function to parse received values, which must be at least the given value.static IntegerParser<Long>
Parsers.integerBelow
(long maximum) Creates a parser that receives plain integer values, which must be at most the given value.static <T extends @NonNull Object>
IntegerParser<T>Parsers.integerBelow
(long maximum, ParserFunction<Long, T> parser) Creates a parser that uses the given function to parse received values, which must be at most the given value.static IntegerParser<Long>
Parsers.integerBetween
(long minimum, long maximum) Creates a parser that receives plain integer values, which must be between the given values.static <T extends @NonNull Object>
IntegerParser<T>Parsers.integerBetween
(long minimum, long maximum, ParserFunction<Long, T> parser) Creates a parser that uses the given function to parse received values, which must be between the given values.