Package graphql.schema
Class GraphqlTypeComparatorEnvironment
java.lang.Object
graphql.schema.GraphqlTypeComparatorEnvironment
Defines the scope to control where the registered
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<? extends GraphQLSchemaElement> Class<? extends GraphQLSchemaElement> inthashCode()transform(Consumer<GraphqlTypeComparatorEnvironment.Builder> builderConsumer) This helps you transform the currentGraphqlTypeComparatorEnvironmentinto 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
nullif not supplied.
-
getElementType
- Returns:
- The valid element type or
nullif not supplied.
-
transform
public GraphqlTypeComparatorEnvironment transform(Consumer<GraphqlTypeComparatorEnvironment.Builder> builderConsumer) This helps you transform the currentGraphqlTypeComparatorEnvironmentinto 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)
-