public class StreamToCollectionTypeAdapter extends AbstractTypeAdapter<Stream<?>,List<?>>
| Constructor and Description |
|---|
StreamToCollectionTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Stream<?> |
convertInput(List<?> substitute,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
List<?> |
convertOutput(Stream<?> original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
The returned type has to erase to
Class<S> |
supportstoGraphQLInputType, toGraphQLTypepublic List<?> convertOutput(Stream<?> original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
public Stream<?> convertInput(List<?> substitute, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
public AnnotatedType getSubstituteType(AnnotatedType original)
InputConverterClass<S>getSubstituteType in interface InputConverter<Stream<?>,List<?>>getSubstituteType in class AbstractTypeSubstitutingMapper<List<?>>original - The original type of the input valueCopyright © 2016–2017. All rights reserved.