@PublicApi public class GraphqlTypeComparatorEnvironment extends java.lang.Object
Comparator
can be applied.
elementType
s can be ordered within its parentType
to restrict the Comparator
s scope of operation.
Otherwise, supplying only the elementType
results in the Comparator
being reused across all matching GraphQLType
s 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public static GraphqlTypeComparatorEnvironment.Builder newEnvironment()
public static GraphqlTypeComparatorEnvironment.Builder newEnvironment(GraphqlTypeComparatorEnvironment existing)