@PublicApi public class DefaultSchemaPrinterComparatorRegistry extends java.lang.Object implements SchemaPrinterComparatorRegistry
Comparator with a SchemaPrinterComparatorEnvironment to control the scope in which the Comparator can be applied.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultSchemaPrinterComparatorRegistry.Builder |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<GraphQLType> |
DEFAULT_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static DefaultSchemaPrinterComparatorRegistry |
defaultComparators() |
<T extends GraphQLType> |
getComparator(SchemaPrinterComparatorEnvironment environment)
Search for the most to least specific registered
Comparator otherwise a default is returned. |
static DefaultSchemaPrinterComparatorRegistry.Builder |
newComparators() |
public static final java.util.Comparator<GraphQLType> DEFAULT_COMPARATOR
public <T extends GraphQLType> java.util.Comparator<? super T> getComparator(SchemaPrinterComparatorEnvironment environment)
Comparator otherwise a default is returned.getComparator in interface SchemaPrinterComparatorRegistryT - the type of the comparatorenvironment - Defines the scope to control where the Comparator can be applied.Comparator or null if not found.public static DefaultSchemaPrinterComparatorRegistry defaultComparators()
GraphQLTypes receive a default Comparator by comparing GraphQLType::getName.public static DefaultSchemaPrinterComparatorRegistry.Builder newComparators()