@PublicApi public static class GraphQLScalarType.Builder extends GraphqlTypeBuilder
comparatorRegistry, description, name
Constructor and Description |
---|
Builder() |
Builder(GraphQLScalarType existing) |
Modifier and Type | Method and Description |
---|---|
GraphQLScalarType |
build() |
GraphQLScalarType.Builder |
clearDirectives()
This is used to clear all the directives in the builder so far.
|
GraphQLScalarType.Builder |
coercing(Coercing coercing) |
GraphQLScalarType.Builder |
comparatorRegistry(GraphqlTypeComparatorRegistry comparatorRegistry) |
GraphQLScalarType.Builder |
definition(ScalarTypeDefinition definition) |
GraphQLScalarType.Builder |
description(java.lang.String description) |
GraphQLScalarType.Builder |
extensionDefinitions(java.util.List<ScalarTypeExtensionDefinition> extensionDefinitions) |
GraphQLScalarType.Builder |
name(java.lang.String name) |
GraphQLScalarType.Builder |
replaceDirectives(java.util.List<GraphQLDirective> directives) |
GraphQLScalarType.Builder |
withDirective(GraphQLDirective.Builder builder) |
GraphQLScalarType.Builder |
withDirective(GraphQLDirective directive) |
GraphQLScalarType.Builder |
withDirectives(GraphQLDirective... directives) |
public Builder()
public Builder(GraphQLScalarType existing)
public GraphQLScalarType.Builder name(java.lang.String name)
public GraphQLScalarType.Builder description(java.lang.String description)
public GraphQLScalarType.Builder comparatorRegistry(GraphqlTypeComparatorRegistry comparatorRegistry)
public GraphQLScalarType.Builder definition(ScalarTypeDefinition definition)
public GraphQLScalarType.Builder extensionDefinitions(java.util.List<ScalarTypeExtensionDefinition> extensionDefinitions)
public GraphQLScalarType.Builder coercing(Coercing coercing)
public GraphQLScalarType.Builder withDirectives(GraphQLDirective... directives)
public GraphQLScalarType.Builder withDirective(GraphQLDirective directive)
public GraphQLScalarType.Builder replaceDirectives(java.util.List<GraphQLDirective> directives)
public GraphQLScalarType.Builder withDirective(GraphQLDirective.Builder builder)
public GraphQLScalarType.Builder clearDirectives()
public GraphQLScalarType build()