@PublicApi public interface GraphqlTypeComparatorRegistry
Modifier and Type | Field and Description |
---|---|
static GraphqlTypeComparatorRegistry |
AS_IS_REGISTRY
A registry that leaves the elements as there currently are
|
static GraphqlTypeComparatorRegistry |
BY_NAME_REGISTRY
A registry that sorts the elements by their name ascending
|
Modifier and Type | Method and Description |
---|---|
<T extends GraphQLSchemaElement> |
getComparator(GraphqlTypeComparatorEnvironment environment) |
static final GraphqlTypeComparatorRegistry AS_IS_REGISTRY
static final GraphqlTypeComparatorRegistry BY_NAME_REGISTRY
<T extends GraphQLSchemaElement> java.util.Comparator<? super T> getComparator(GraphqlTypeComparatorEnvironment environment)
T
- the type of the comparatorenvironment
- Defines the scope to control where the Comparator
can be applied.Comparator
or null
if not found.