Interface AggregateParserPairBuilder.Mapper.DirectSuccessMapper<C,U,V,O>
- All Superinterfaces:
AggregateParserPairBuilder.Mapper<C,U, V, O>
- Enclosing interface:
AggregateParserPairBuilder.Mapper<C,U, V, O>
public static interface AggregateParserPairBuilder.Mapper.DirectSuccessMapper<C,U,V,O>
extends AggregateParserPairBuilder.Mapper<C,U,V,O>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.parser.aggregate.AggregateParserPairBuilder.Mapper
AggregateParserPairBuilder.Mapper.DirectSuccessMapper<C,U, V, O> -
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull CompletableFuture<ArgumentParseResult<O>> Maps the results of the child parsers to the output type.mapSuccess(@NonNull CommandContext<C> commandContext, @NonNull U firstResult, @NonNull V secondResult) Maps the results of the child parsers to the output type.
-
Method Details
-
mapSuccess
@NonNull O mapSuccess(@NonNull CommandContext<C> commandContext, @NonNull U firstResult, @NonNull V secondResult) Maps the results of the child parsers to the output type.- Parameters:
commandContext- the command contextfirstResult- the first resultsecondResult- the second result- Returns:
- the mapped result
-
map
default @NonNull CompletableFuture<ArgumentParseResult<O>> map(@NonNull CommandContext<C> commandContext, @NonNull U firstResult, @NonNull V secondResult) Description copied from interface:AggregateParserPairBuilder.MapperMaps the results of the child parsers to the output type.
-