@PublicApi public class SchemaPrinterComparatorEnvironment 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 |
SchemaPrinterComparatorEnvironment.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Class<? extends GraphQLType> |
getElementType() |
java.lang.Class<? extends GraphQLType> |
getParentType() |
int |
hashCode() |
static SchemaPrinterComparatorEnvironment.Builder |
newEnvironment() |
static SchemaPrinterComparatorEnvironment.Builder |
newEnvironment(SchemaPrinterComparatorEnvironment existing) |
SchemaPrinterComparatorEnvironment |
transform(java.util.function.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 java.lang.Class<? extends GraphQLType> getParentType()
null
if not supplied.public java.lang.Class<? extends GraphQLType> getElementType()
public SchemaPrinterComparatorEnvironment transform(java.util.function.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 boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static SchemaPrinterComparatorEnvironment.Builder newEnvironment()
public static SchemaPrinterComparatorEnvironment.Builder newEnvironment(SchemaPrinterComparatorEnvironment existing)