Package graphql.schema
Interface GraphqlTypeComparatorRegistry
- All Known Implementing Classes:
DefaultGraphqlTypeComparatorRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GraphqlTypeComparatorRegistry
A registry that leaves the elements as there currently arestatic final GraphqlTypeComparatorRegistry
A 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 theComparator
can be applied.- Returns:
- The registered
Comparator
ornull
if not found.
-