/** * @param name the name * @param description the description * @param fieldDefinitions the fields * @param typeResolver the type resolver function * @param directives the directives on this type element * @param definition the AST definition * * @deprecated use the {@link #newInterface()} builder pattern instead, as this constructor will be made private in a future version. */ @Internal @Deprecated public GraphQLInterfaceType(String name, String description, List<GraphQLFieldDefinition> fieldDefinitions, TypeResolver typeResolver, List<GraphQLDirective> directives, InterfaceTypeDefinition definition) { assertValidName(name); assertNotNull(fieldDefinitions, "fieldDefinitions can't null"); assertNotNull(directives, "directives cannot be null"); this.name = name; this.description = description; buildDefinitionMap(sortGraphQLTypes(fieldDefinitions)); this.typeResolver = typeResolver; this.definition = definition; this.directives = directives; }
/** * @param name the name * @param description the description * @param fieldDefinitions the fields * @param typeResolver the type resolver function * @param directives the directives on this type element * @param definition the AST definition * * @deprecated use the {@link #newInterface()} builder pattern instead, as this constructor will be made private in a future version. */ @Internal @Deprecated public GraphQLInterfaceType(String name, String description, List<GraphQLFieldDefinition> fieldDefinitions, TypeResolver typeResolver, List<GraphQLDirective> directives, InterfaceTypeDefinition definition) { assertValidName(name); assertNotNull(fieldDefinitions, "fieldDefinitions can't null"); assertNotNull(directives, "directives cannot be null"); this.name = name; this.description = description; buildDefinitionMap(sortGraphQLTypes(fieldDefinitions)); this.typeResolver = typeResolver; this.definition = definition; this.directives = directives; }