public class OptionalAdapter extends AbstractSimpleTypeAdapter<Optional<?>,Object> implements DelegatingOutputConverter<Optional<?>,Object>
rawSourceTypesourceTypesubstituteType| 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 env) |
List<AnnotatedType> |
getDerivedTypes(AnnotatedType type) |
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 Object convertOutput(Optional<?> original, AnnotatedType type, ResolutionEnvironment env)
convertOutput in interface OutputConverter<Optional<?>,Object>public Optional<?> convertInput(Object substitute, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)
convertInput in interface InputConverter<Optional<?>,Object>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 replacedpublic List<AnnotatedType> getDerivedTypes(AnnotatedType type)
getDerivedTypes in interface DelegatingOutputConverter<Optional<?>,Object>Copyright © 2016–2019. All rights reserved.