Interface AggregateResultMapper.DirectSuccessMapper<C,O>
- All Superinterfaces:
AggregateResultMapper<C,O>
- Enclosing interface:
AggregateResultMapper<C,O>
@API(status=STABLE)
public static interface AggregateResultMapper.DirectSuccessMapper<C,O>
extends AggregateResultMapper<C,O>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.parser.aggregate.AggregateResultMapper
AggregateResultMapper.DirectSuccessMapper<C,O> -
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull CompletableFuture<ArgumentParseResult<O>> map(@NonNull CommandContext<C> commandContext, @NonNull AggregateParsingContext<C> context) Maps the givencontextinto the output of typeAggregateResultMapper.mapSuccess(@NonNull CommandContext<C> commandContext, @NonNull AggregateParsingContext<C> context) Maps the givencontextinto the output of typeAggregateResultMapper.DirectSuccessMapper.
-
Method Details
-
mapSuccess
@NonNull O mapSuccess(@NonNull CommandContext<C> commandContext, @NonNull AggregateParsingContext<C> context) Maps the givencontextinto the output of typeAggregateResultMapper.DirectSuccessMapper.- Parameters:
commandContext- the command contextcontext- the context to map- Returns:
- the result
-
map
default @NonNull CompletableFuture<ArgumentParseResult<O>> map(@NonNull CommandContext<C> commandContext, @NonNull AggregateParsingContext<C> context) Description copied from interface:AggregateResultMapperMaps the givencontextinto the output of typeAggregateResultMapper.- Specified by:
mapin interfaceAggregateResultMapper<C,O> - Parameters:
commandContext- the command contextcontext- the context to map- Returns:
- future that completes with the result
-