
graphql.schema.BuilderFunction Maven / Gradle / Ivy
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