Class MapOutputConverter
- java.lang.Object
-
- io.leangen.graphql.generator.mapping.common.MapOutputConverter
-
- All Implemented Interfaces:
DelegatingOutputConverter<Map<?,?>,Map<?,?>>,OutputConverter<Map<?,?>,Map<?,?>>
public class MapOutputConverter extends Object implements DelegatingOutputConverter<Map<?,?>,Map<?,?>>
Only used to trigger the conversion of map keys and values
-
-
Constructor Summary
Constructors Constructor Description MapOutputConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<?,?>convertOutput(Map<?,?> original, AnnotatedType type, ResolutionEnvironment env)List<AnnotatedType>getDerivedTypes(AnnotatedType mapType)booleanisTransparent()ADelegatingOutputConverteris considered transparent if its sole purpose is to delegate to other converters, and contains no other logic of its own.booleansupports(AnnotatedElement element, AnnotatedType type)
-
-
-
Method Detail
-
convertOutput
public Map<?,?> convertOutput(Map<?,?> original, AnnotatedType type, ResolutionEnvironment env)
- Specified by:
convertOutputin interfaceOutputConverter<Map<?,?>,Map<?,?>>
-
getDerivedTypes
public List<AnnotatedType> getDerivedTypes(AnnotatedType mapType)
- Specified by:
getDerivedTypesin interfaceDelegatingOutputConverter<Map<?,?>,Map<?,?>>
-
isTransparent
public boolean isTransparent()
Description copied from interface:DelegatingOutputConverterADelegatingOutputConverteris 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, and is always safe to leave onfalse.- Specified by:
isTransparentin interfaceDelegatingOutputConverter<Map<?,?>,Map<?,?>>- Returns:
- A boolean signifying whether the converter is transparent.
-
supports
public boolean supports(AnnotatedElement element, AnnotatedType type)
- Specified by:
supportsin interfaceOutputConverter<Map<?,?>,Map<?,?>>
-
-