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> |
| Constructor and Description |
|---|
MapToListTypeAdapter(ScalarMappingStrategy scalarStrategy) |
| Modifier and Type | Method and Description |
|---|---|
Map<K,V> |
convertInput(List<MapToListTypeAdapter.MapEntry<K,V>> original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
List<MapToListTypeAdapter.MapEntry<K,V>> |
convertOutput(Map<K,V> original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
The returned type has to erase to
Class<S> |
boolean |
supports(AnnotatedType type) |
graphql.schema.GraphQLInputType |
toGraphQLInputType(AnnotatedType javaType,
Set<Type> abstractTypes,
OperationMapper operationMapper,
BuildContext buildContext) |
graphql.schema.GraphQLOutputType |
toGraphQLType(AnnotatedType javaType,
Set<Type> abstractTypes,
OperationMapper operationMapper,
BuildContext buildContext) |
public MapToListTypeAdapter(ScalarMappingStrategy scalarStrategy)
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, ResolutionEnvironment resolutionEnvironment)
public AnnotatedType getSubstituteType(AnnotatedType original)
InputConverterClass<S>getSubstituteType in interface InputConverter<Map<K,V>,List<MapToListTypeAdapter.MapEntry<K,V>>>getSubstituteType in class AbstractTypeSubstitutingMapper<List<MapToListTypeAdapter.MapEntry<K,V>>>original - The original type of the input valuepublic graphql.schema.GraphQLOutputType toGraphQLType(AnnotatedType javaType, Set<Type> abstractTypes, OperationMapper operationMapper, BuildContext buildContext)
toGraphQLType in interface TypeMappertoGraphQLType in class AbstractTypeSubstitutingMapper<List<MapToListTypeAdapter.MapEntry<K,V>>>public graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType, Set<Type> abstractTypes, OperationMapper operationMapper, 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–2017. All rights reserved.