Package graphql.schema
Interface GraphqlTypeComparatorRegistry
-
- All Known Implementing Classes:
DefaultGraphqlTypeComparatorRegistry
@PublicApi public interface GraphqlTypeComparatorRegistry
-
-
Field Summary
Fields Modifier and Type Field Description static GraphqlTypeComparatorRegistry
AS_IS_REGISTRY
A registry that leaves the elements as there currently arestatic GraphqlTypeComparatorRegistry
BY_NAME_REGISTRY
A registry that sorts the elements by their name ascending
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends GraphQLSchemaElement>
java.util.Comparator<? super T>getComparator(GraphqlTypeComparatorEnvironment environment)
-
-
-
Field Detail
-
AS_IS_REGISTRY
static final GraphqlTypeComparatorRegistry AS_IS_REGISTRY
A registry that leaves the elements as there currently are
-
BY_NAME_REGISTRY
static final GraphqlTypeComparatorRegistry BY_NAME_REGISTRY
A registry that sorts the elements by their name ascending
-
-
Method Detail
-
getComparator
<T extends GraphQLSchemaElement> java.util.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.
-
-