Class ObjectScalarMapper
- java.lang.Object
-
- io.leangen.graphql.generator.mapping.common.CachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>
-
- io.leangen.graphql.generator.mapping.common.ObjectScalarMapper
-
- All Implemented Interfaces:
TypeMapper,Comparator<AnnotatedType>
public class ObjectScalarMapper extends CachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType> implements Comparator<AnnotatedType>
- Author:
- Bojan Tomic (kaqqao)
-
-
Constructor Summary
Constructors Constructor Description ObjectScalarMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(AnnotatedType o1, AnnotatedType o2)booleansupports(AnnotatedElement element, AnnotatedType type)graphql.schema.GraphQLScalarTypetoGraphQLInputType(String typeName, AnnotatedType javaType, TypeMappingEnvironment env)graphql.schema.GraphQLScalarTypetoGraphQLType(String typeName, AnnotatedType javaType, TypeMappingEnvironment env)-
Methods inherited from class io.leangen.graphql.generator.mapping.common.CachingMapper
getInputTypeName, getTypeName, toGraphQLInputType, toGraphQLType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
toGraphQLType
public graphql.schema.GraphQLScalarType toGraphQLType(String typeName, AnnotatedType javaType, TypeMappingEnvironment env)
- Specified by:
toGraphQLTypein classCachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>
-
toGraphQLInputType
public graphql.schema.GraphQLScalarType toGraphQLInputType(String typeName, AnnotatedType javaType, TypeMappingEnvironment env)
- Specified by:
toGraphQLInputTypein classCachingMapper<graphql.schema.GraphQLScalarType,graphql.schema.GraphQLScalarType>
-
supports
public boolean supports(AnnotatedElement element, AnnotatedType type)
- Specified by:
supportsin interfaceTypeMapper
-
compare
public int compare(AnnotatedType o1, AnnotatedType o2)
- Specified by:
comparein interfaceComparator<AnnotatedType>
-
-