@PublicApi public class GraphqlTypeComparatorEnvironment extends java.lang.Object
Comparator can be applied.
elementTypes can be ordered within its parentType to restrict the Comparators scope of operation.
Otherwise, supplying only the elementType results in the Comparator being reused across all matching GraphQLTypes regardless of parent.
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphqlTypeComparatorEnvironment.Builder |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Class<? extends GraphQLSchemaElement> |
getElementType() |
java.lang.Class<? extends GraphQLSchemaElement> |
getParentType() |
int |
hashCode() |
static GraphqlTypeComparatorEnvironment.Builder |
newEnvironment() |
static GraphqlTypeComparatorEnvironment.Builder |
newEnvironment(GraphqlTypeComparatorEnvironment existing) |
GraphqlTypeComparatorEnvironment |
transform(java.util.function.Consumer<GraphqlTypeComparatorEnvironment.Builder> builderConsumer)
This helps you transform the current
GraphqlTypeComparatorEnvironment into another one by starting a builder with all
the current values and allows you to transform it how you want. |
public java.lang.Class<? extends GraphQLSchemaElement> getParentType()
null if not supplied.public java.lang.Class<? extends GraphQLSchemaElement> getElementType()
null if not supplied.public GraphqlTypeComparatorEnvironment transform(java.util.function.Consumer<GraphqlTypeComparatorEnvironment.Builder> builderConsumer)
GraphqlTypeComparatorEnvironment into another one by starting a builder with all
the current values and allows you to transform it how you want.builderConsumer - the consumer code that will be given a builder to transform.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static GraphqlTypeComparatorEnvironment.Builder newEnvironment()
public static GraphqlTypeComparatorEnvironment.Builder newEnvironment(GraphqlTypeComparatorEnvironment existing)