All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.schema.BuilderFunction Maven / Gradle / Ivy

There is a newer version: 2.4.0-no-slf4j
Show newest version
package graphql.schema;

/**
 * Provides supplier functionality for those using java 8 without breaking
 * the contract of jdk 6. Used in a function-esque lambda pattern to
 * build graphql types. e.g:
 * 
 * {@code
 *  GraphQLObjectType.Builder obj = GraphQLObjectType.newObject();
 *     obj.field(field -> field
 *             .name("fieldName")
 *             .argument(arg -> arg
 *                     .name("argumentName")));
 *  }
 * 
* * @param type of result supplied */ public interface BuilderFunction { T apply(T t); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy