public class CollectionOutputConverter extends Object implements DelegatingOutputConverter<Collection<?>,Collection<?>>
| Constructor and Description |
|---|
CollectionOutputConverter() |
| Modifier and Type | Method and Description |
|---|---|
Collection<?> |
convertOutput(Collection<?> original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
List<AnnotatedType> |
getDerivedTypes(AnnotatedType collectionType) |
boolean |
isTransparent()
A
DelegatingOutputConverter is considered transparent if its sole purpose is to delegate to other
converters, and contains no other logic of its own. |
boolean |
supports(AnnotatedType type) |
public Collection<?> convertOutput(Collection<?> original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
convertOutput in interface OutputConverter<Collection<?>,Collection<?>>public List<AnnotatedType> getDerivedTypes(AnnotatedType collectionType)
getDerivedTypes in interface DelegatingOutputConverter<Collection<?>,Collection<?>>public boolean isTransparent()
DelegatingOutputConverterDelegatingOutputConverter is 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, as is always safe to leave on false.isTransparent in interface DelegatingOutputConverter<Collection<?>,Collection<?>>public boolean supports(AnnotatedType type)
supports in interface OutputConverter<Collection<?>,Collection<?>>Copyright © 2016–2019. All rights reserved.