Package graphql.schema
Class GraphqlTypeComparatorEnvironment
java.lang.Object
graphql.schema.GraphqlTypeComparatorEnvironment
Defines the scope to control where the registered
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
Class
<? extends GraphQLSchemaElement> Class
<? extends GraphQLSchemaElement> int
hashCode()
transform
(Consumer<GraphqlTypeComparatorEnvironment.Builder> builderConsumer) This helps you transform the currentGraphqlTypeComparatorEnvironment
into another one by starting a builder with all the current values and allows you to transform it how you want.
-
Method Details
-
getParentType
- Returns:
- The parent type or
null
if not supplied.
-
getElementType
- Returns:
- The valid element type or
null
if not supplied.
-
transform
public GraphqlTypeComparatorEnvironment transform(Consumer<GraphqlTypeComparatorEnvironment.Builder> builderConsumer) This helps you transform the currentGraphqlTypeComparatorEnvironment
into another one by starting a builder with all the current values and allows you to transform it how you want.- Parameters:
builderConsumer
- the consumer code that will be given a builder to transform.- Returns:
- a new object based on calling build on that builder.
-
equals
-
hashCode
public int hashCode() -
newEnvironment
-
newEnvironment
public static GraphqlTypeComparatorEnvironment.Builder newEnvironment(GraphqlTypeComparatorEnvironment existing)
-