public class MapToListTypeAdapter<K,V> extends AbstractTypeAdapter<Map<K,V>,List<MapToListTypeAdapter.MapEntry<K,V>>>
MapToListTypeAdapter.MapEntry).| Modifier and Type | Class and Description |
|---|---|
static class |
MapToListTypeAdapter.MapEntry<K,V> |
sourceTypesubstituteType| Constructor and Description |
|---|
MapToListTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Map<K,V> |
convertInput(List<MapToListTypeAdapter.MapEntry<K,V>> original,
AnnotatedType type,
GlobalEnvironment environment,
ValueMapper valueMapper) |
List<MapToListTypeAdapter.MapEntry<K,V>> |
convertOutput(Map<K,V> original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
Returns the type to map instead of the original.
|
boolean |
supports(AnnotatedType type) |
graphql.schema.GraphQLInputType |
toGraphQLInputType(AnnotatedType javaType,
OperationMapper operationMapper,
Set<Class<? extends TypeMapper>> mappersToSkip,
BuildContext buildContext) |
graphql.schema.GraphQLOutputType |
toGraphQLType(AnnotatedType javaType,
OperationMapper operationMapper,
Set<Class<? extends TypeMapper>> mappersToSkip,
BuildContext buildContext) |
public List<MapToListTypeAdapter.MapEntry<K,V>> convertOutput(Map<K,V> original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
public Map<K,V> convertInput(List<MapToListTypeAdapter.MapEntry<K,V>> original, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)
public AnnotatedType getSubstituteType(AnnotatedType original)
AbstractTypeSubstitutingMapperS.getSubstituteType in interface InputConverter<Map<K,V>,List<MapToListTypeAdapter.MapEntry<K,V>>>getSubstituteType in interface TypeSubstitutergetSubstituteType in class AbstractTypeSubstitutingMapper<List<MapToListTypeAdapter.MapEntry<K,V>>>original - The type to be replacedpublic graphql.schema.GraphQLOutputType toGraphQLType(AnnotatedType javaType, OperationMapper operationMapper, Set<Class<? extends TypeMapper>> mappersToSkip, BuildContext buildContext)
toGraphQLType in interface TypeMappertoGraphQLType in class AbstractTypeSubstitutingMapper<List<MapToListTypeAdapter.MapEntry<K,V>>>public graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType, OperationMapper operationMapper, Set<Class<? extends TypeMapper>> mappersToSkip, BuildContext buildContext)
toGraphQLInputType in interface TypeMappertoGraphQLInputType in class AbstractTypeSubstitutingMapper<List<MapToListTypeAdapter.MapEntry<K,V>>>public boolean supports(AnnotatedType type)
supports in interface InputConverter<Map<K,V>,List<MapToListTypeAdapter.MapEntry<K,V>>>supports in interface OutputConverter<Map<K,V>,List<MapToListTypeAdapter.MapEntry<K,V>>>supports in interface TypeMappersupports in class AbstractTypeAdapter<Map<K,V>,List<MapToListTypeAdapter.MapEntry<K,V>>>Copyright © 2016–2018. All rights reserved.