public class StreamToCollectionTypeAdapter<T> extends AbstractTypeAdapter<Stream<T>,List<T>>
sourceTypesubstituteType| Constructor and Description |
|---|
StreamToCollectionTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Stream<T> |
convertInput(List<T> substitute,
AnnotatedType type,
GlobalEnvironment environment,
ValueMapper valueMapper) |
List<T> |
convertOutput(Stream<T> original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
Returns the type to map instead of the original.
|
supportstoGraphQLInputType, toGraphQLTypepublic List<T> convertOutput(Stream<T> original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
public Stream<T> convertInput(List<T> substitute, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)
public AnnotatedType getSubstituteType(AnnotatedType original)
AbstractTypeSubstitutingMapperS.getSubstituteType in interface InputConverter<Stream<T>,List<T>>getSubstituteType in interface TypeSubstitutergetSubstituteType in class AbstractTypeSubstitutingMapper<List<T>>original - The type to be replacedCopyright © 2016–2018. All rights reserved.