Class CollectionOutputConverter
- java.lang.Object
-
- io.leangen.graphql.generator.mapping.common.CollectionOutputConverter
-
- All Implemented Interfaces:
DelegatingOutputConverter<Collection<?>,Collection<?>>,OutputConverter<Collection<?>,Collection<?>>
public class CollectionOutputConverter extends Object implements DelegatingOutputConverter<Collection<?>,Collection<?>>
Only used to trigger the conversion of collection elements
-
-
Constructor Summary
Constructors Constructor Description CollectionOutputConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<?>convertOutput(Collection<?> original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)List<AnnotatedType>getDerivedTypes(AnnotatedType collectionType)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 Collection<?> convertOutput(Collection<?> original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
- Specified by:
convertOutputin interfaceOutputConverter<Collection<?>,Collection<?>>
-
getDerivedTypes
public List<AnnotatedType> getDerivedTypes(AnnotatedType collectionType)
- Specified by:
getDerivedTypesin interfaceDelegatingOutputConverter<Collection<?>,Collection<?>>
-
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<Collection<?>,Collection<?>>- Returns:
- A boolean signifying whether the converter is transparent.
-
supports
public boolean supports(AnnotatedElement element, AnnotatedType type)
- Specified by:
supportsin interfaceOutputConverter<Collection<?>,Collection<?>>
-
-