Package org.incendo.cloud.parser
Interface MappedArgumentParser.Mapper<C,I,O>
- Enclosing interface:
MappedArgumentParser<C,
I, O>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionmap
(@NonNull CommandContext<C> context, @NonNull ArgumentParseResult<I> input) Maps the input to a future that completes with the output.
-
Method Details
-
map
@NonNull CompletableFuture<ArgumentParseResult<O>> map(@NonNull CommandContext<C> context, @NonNull ArgumentParseResult<I> input) Maps the input to a future that completes with the output.- Parameters:
context
- the contextinput
- the input- Returns:
- future that completes with the output
-