public class IterableAdapter<T> extends AbstractTypeSubstitutingMapper<List<T>> implements InputConverter<Iterable<T>,List<T>>
substituteType| Constructor and Description |
|---|
IterableAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<T> |
convertInput(List<T> substitute,
AnnotatedType type,
GlobalEnvironment environment,
ValueMapper valueMapper) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
Returns the type to map instead of the original.
|
boolean |
supports(AnnotatedType type) |
toGraphQLInputType, toGraphQLTypepublic AnnotatedType getSubstituteType(AnnotatedType original)
AbstractTypeSubstitutingMapperS.getSubstituteType in interface InputConverter<Iterable<T>,List<T>>getSubstituteType in interface TypeSubstitutergetSubstituteType in class AbstractTypeSubstitutingMapper<List<T>>original - The type to be replacedpublic Iterable<T> convertInput(List<T> substitute, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)
convertInput in interface InputConverter<Iterable<T>,List<T>>public boolean supports(AnnotatedType type)
supports in interface InputConverter<Iterable<T>,List<T>>supports in interface TypeMapperCopyright © 2016–2018. All rights reserved.