public class CompletableFutureAdapter<T> extends AbstractTypeSubstitutingMapper implements InputConverter<CompletableFuture<T>,T>, DelegatingOutputConverter<CompletableFuture<T>,CompletableFuture<?>>
substituteType| Constructor and Description |
|---|
CompletableFutureAdapter() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<T> |
convertInput(T substitute,
AnnotatedType type,
GlobalEnvironment environment,
ValueMapper valueMapper) |
CompletableFuture<?> |
convertOutput(CompletableFuture<T> original,
AnnotatedType type,
ResolutionEnvironment env) |
List<AnnotatedType> |
getDerivedTypes(AnnotatedType type) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
Returns the type to map instead of the original.
|
boolean |
isTransparent()
A
DelegatingOutputConverter is considered transparent if its sole purpose is to delegate to other
converters, and contains no other logic of its own. |
boolean |
supports(AnnotatedType type) |
toGraphQLInputType, toGraphQLTypepublic AnnotatedType getSubstituteType(AnnotatedType original)
AbstractTypeSubstitutingMapperS.getSubstituteType in interface InputConverter<CompletableFuture<T>,T>getSubstituteType in interface TypeSubstitutergetSubstituteType in class AbstractTypeSubstitutingMapperoriginal - The type to be replacedpublic CompletableFuture<T> convertInput(T substitute, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)
convertInput in interface InputConverter<CompletableFuture<T>,T>public CompletableFuture<?> convertOutput(CompletableFuture<T> original, AnnotatedType type, ResolutionEnvironment env)
convertOutput in interface OutputConverter<CompletableFuture<T>,CompletableFuture<?>>public List<AnnotatedType> getDerivedTypes(AnnotatedType type)
getDerivedTypes in interface DelegatingOutputConverter<CompletableFuture<T>,CompletableFuture<?>>public boolean isTransparent()
DelegatingOutputConverterDelegatingOutputConverter is considered transparent if its sole purpose is to delegate to other
converters, and contains no other logic of its own. In other words, if there is no reason to invoke it without
other applicable converters present.
This flag is purely a performance optimization hint, as is always safe to leave on false.isTransparent in interface DelegatingOutputConverter<CompletableFuture<T>,CompletableFuture<?>>public boolean supports(AnnotatedType type)
supports in interface InputConverter<CompletableFuture<T>,T>supports in interface OutputConverter<CompletableFuture<T>,CompletableFuture<?>>supports in interface TypeMapperCopyright © 2016–2019. All rights reserved.