Class BooleanArgumentResolver<SENDER>
java.lang.Object
dev.rollczi.litecommands.argument.resolver.ArgumentResolver<SENDER,Boolean>
dev.rollczi.litecommands.argument.resolver.standard.BooleanArgumentResolver<SENDER>
- All Implemented Interfaces:
Parser<SENDER,,RawInput, Boolean> RawInputParser<SENDER,,Boolean> MultipleArgumentResolver<SENDER,,Boolean> Suggester<SENDER,,Boolean> Rangeable<Argument<Boolean>>
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanArgumentResolver(Collection<String> trueValues, Collection<String> falseValues) -
Method Summary
Modifier and TypeMethodDescriptionprotected ParseResult<Boolean> suggest(Invocation<SENDER> invocation, Argument<Boolean> argument, SuggestionContext context) Methods inherited from class dev.rollczi.litecommands.argument.resolver.ArgumentResolver
canParse, canParse, getRange, parseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.rollczi.litecommands.argument.parser.RawInputParser
getInputType
-
Constructor Details
-
BooleanArgumentResolver
public BooleanArgumentResolver() -
BooleanArgumentResolver
-
-
Method Details
-
parse
protected ParseResult<Boolean> parse(Invocation<SENDER> invocation, Argument<Boolean> context, String argument) - Specified by:
parsein classArgumentResolver<SENDER,Boolean>
-
suggest
public SuggestionResult suggest(Invocation<SENDER> invocation, Argument<Boolean> argument, SuggestionContext context)
-