Interface AggregateResultMapper<C,O>
- Type Parameters:
C- the command sender typeO- the output type
- All Known Subinterfaces:
AggregateResultMapper.DirectSuccessMapper<C,O>
Mapper that maps the result of invoking the inner parsers of a
AggregateParser.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionmap(@NonNull CommandContext<C> commandContext, @NonNull AggregateParsingContext<C> context) Maps the givencontextinto the output of typeAggregateResultMapper.
-
Method Details
-
map
@NonNull CompletableFuture<ArgumentParseResult<O>> map(@NonNull CommandContext<C> commandContext, @NonNull AggregateParsingContext<C> context) Maps the givencontextinto the output of typeAggregateResultMapper.- Parameters:
commandContext- the command contextcontext- the context to map- Returns:
- future that completes with the result
-