Package graphql.schema
Interface GraphqlTypeComparatorRegistry
- All Known Implementing Classes:
DefaultGraphqlTypeComparatorRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GraphqlTypeComparatorRegistryA registry that leaves the elements as there currently arestatic final GraphqlTypeComparatorRegistryA registry that sorts the elements by their name ascending -
Method Summary
Modifier and TypeMethodDescription<T extends GraphQLSchemaElement>
Comparator<? super T> getComparator(GraphqlTypeComparatorEnvironment environment)
-
Field Details
-
AS_IS_REGISTRY
A registry that leaves the elements as there currently are -
BY_NAME_REGISTRY
A registry that sorts the elements by their name ascending
-
-
Method Details
-
getComparator
<T extends GraphQLSchemaElement> Comparator<? super T> getComparator(GraphqlTypeComparatorEnvironment environment) - Type Parameters:
T- the type of the comparator- Parameters:
environment- Defines the scope to control where theComparatorcan be applied.- Returns:
- The registered
Comparatorornullif not found.
-