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

graphql.util.NodeAdapter Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.util;

import graphql.PublicApi;

import java.util.List;
import java.util.Map;

/**
 * Adapts an arbitrary class to behave as a node.
 * We are using an Adapter because we don't want to require Nodes to implement a certain Interface.
 *
 * @param  the generic type of object
 */
@PublicApi
public interface NodeAdapter {

    Map> getNamedChildren(T node);

    T withNewChildren(T node, Map> newChildren);

    T removeChild(T node, NodeLocation location);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy