public class StreamToCollectionTypeAdapter<T> extends AbstractSimpleTypeAdapter<Stream<T>,List<T>> implements DelegatingOutputConverter<Stream<T>,List<T>>
rawSourceTypesourceTypesubstituteType| 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 env) |
List<AnnotatedType> |
getDerivedTypes(AnnotatedType streamType) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
Returns the type to map instead of the original.
|
supportstoGraphQLInputType, toGraphQLTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisTransparentsupportspublic List<T> convertOutput(Stream<T> original, AnnotatedType type, ResolutionEnvironment env)
convertOutput in interface OutputConverter<Stream<T>,List<T>>public Stream<T> convertInput(List<T> substitute, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)
convertInput in interface InputConverter<Stream<T>,List<T>>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 replacedpublic List<AnnotatedType> getDerivedTypes(AnnotatedType streamType)
getDerivedTypes in interface DelegatingOutputConverter<Stream<T>,List<T>>Copyright © 2016–2019. All rights reserved.