/** * @param name the name * @param description the description * @param fields the fields * @param directives the directives on this type element * @param definition the AST definition * * @deprecated use the {@link #newInputObject()} builder pattern instead, as this constructor will be made private in a future version. */ @Internal @Deprecated public GraphQLInputObjectType(String name, String description, List<GraphQLInputObjectField> fields, List<GraphQLDirective> directives, InputObjectTypeDefinition definition) { assertValidName(name); assertNotNull(fields, "fields can't be null"); assertNotNull(directives, "directives cannot be null"); this.name = name; this.description = description; this.definition = definition; this.directives = directives; buildMap(sortGraphQLTypes(fields)); }
/** * @param name the name * @param description the description * @param fields the fields * @param directives the directives on this type element * @param definition the AST definition * * @deprecated use the {@link #newInputObject()} builder pattern instead, as this constructor will be made private in a future version. */ @Internal @Deprecated public GraphQLInputObjectType(String name, String description, List<GraphQLInputObjectField> fields, List<GraphQLDirective> directives, InputObjectTypeDefinition definition) { assertValidName(name); assertNotNull(fields, "fields can't be null"); assertNotNull(directives, "directives cannot be null"); this.name = name; this.description = description; this.definition = definition; this.directives = directives; buildMap(sortGraphQLTypes(fields)); }