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