@PublicApi public class SchemaPrinterComparatorEnvironment extends 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 |
SchemaPrinterComparatorEnvironment.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Class<? extends GraphQLType> |
getElementType() |
Class<? extends GraphQLType> |
getParentType() |
int |
hashCode() |
static SchemaPrinterComparatorEnvironment.Builder |
newEnvironment() |
static SchemaPrinterComparatorEnvironment.Builder |
newEnvironment(SchemaPrinterComparatorEnvironment existing) |
SchemaPrinterComparatorEnvironment |
transform(Consumer<SchemaPrinterComparatorEnvironment.Builder> builderConsumer)
This helps you transform the current
SchemaPrinterComparatorEnvironment into another one by starting a builder with all
the current values and allows you to transform it how you want. |
public Class<? extends GraphQLType> getParentType()
null
if not supplied.public Class<? extends GraphQLType> getElementType()
public SchemaPrinterComparatorEnvironment transform(Consumer<SchemaPrinterComparatorEnvironment.Builder> builderConsumer)
SchemaPrinterComparatorEnvironment
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 static SchemaPrinterComparatorEnvironment.Builder newEnvironment()
public static SchemaPrinterComparatorEnvironment.Builder newEnvironment(SchemaPrinterComparatorEnvironment existing)
Copyright © 2019. All rights reserved.