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