Package discord4j.rest.response
Class CompositeTransformer
- java.lang.Object
-
- discord4j.rest.response.CompositeTransformer
-
- All Implemented Interfaces:
ResponseFunction
@Experimental public class CompositeTransformer extends Object implements ResponseFunction
AResponseFunctionthat can join multipleResponseFunctioninstances.
-
-
Constructor Summary
Constructors Constructor Description CompositeTransformer(List<ResponseFunction> responseFunctions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function<Mono<ClientResponse>,Mono<ClientResponse>>transform(DiscordWebRequest request)Transform aMonopipeline using the givenDiscordWebRequestas hint for parameterization of the resulting transformation.
-
-
-
Constructor Detail
-
CompositeTransformer
public CompositeTransformer(List<ResponseFunction> responseFunctions)
-
-
Method Detail
-
transform
public Function<Mono<ClientResponse>,Mono<ClientResponse>> transform(DiscordWebRequest request)
Description copied from interface:ResponseFunctionTransform aMonopipeline using the givenDiscordWebRequestas hint for parameterization of the resulting transformation.- Specified by:
transformin interfaceResponseFunction- Parameters:
request- theDiscordRequestused for the targetedMonosequence- Returns:
- a
Functionthat allows immediately mapping thisMonointo a targetMonoinstance
-
-