public static class DefaultSchemaPrinterComparatorRegistry.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
<T extends GraphQLType> |
addComparator(SchemaPrinterComparatorEnvironment environment,
Class<T> comparatorClass,
Comparator<? super T> comparator)
Registers a
Comparator with an environment to control its permitted scope of operation. |
<T extends GraphQLType> |
addComparator(UnaryOperator<SchemaPrinterComparatorEnvironment.Builder> builderFunction,
Class<T> comparatorClass,
Comparator<? super T> comparator)
Convenience method which supplies an environment builder function.
|
DefaultSchemaPrinterComparatorRegistry |
build() |
public <T extends GraphQLType> DefaultSchemaPrinterComparatorRegistry.Builder addComparator(SchemaPrinterComparatorEnvironment environment, Class<T> comparatorClass, Comparator<? super T> comparator)
Comparator
with an environment to control its permitted scope of operation.T
- The specific GraphQLType
the Comparator
should operate on.environment
- Defines the scope to control where the Comparator
can be applied.comparatorClass
- The Comparator
class for added type safety. It should match environment.elementType
.comparator
- The Comparator
of type comparatorClass
.Builder
instance to allow chaining.public <T extends GraphQLType> DefaultSchemaPrinterComparatorRegistry.Builder addComparator(UnaryOperator<SchemaPrinterComparatorEnvironment.Builder> builderFunction, Class<T> comparatorClass, Comparator<? super T> comparator)
T
- the graphql typebuilderFunction
- the function which is given a buildercomparatorClass
- The Comparator
class for added type safety. It should match environment.elementType
.comparator
- The Comparator
of type comparatorClass
.addComparator(graphql.schema.idl.SchemaPrinterComparatorEnvironment, java.lang.Class<T>, java.util.Comparator<? super T>)
public DefaultSchemaPrinterComparatorRegistry build()
Copyright © 2019. All rights reserved.