Package graphql.util

Interface NodeAdapter<T>

  • Type Parameters:
    T - the generic type of object
    All Known Implementing Classes:
    AstNodeAdapter, GraphQLSchemaElementAdapter

    @PublicApi
    public interface NodeAdapter<T>
    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.
    • Method Detail

      • getNamedChildren

        java.util.Map<java.lang.String,​java.util.List<T>> getNamedChildren​(T node)
      • withNewChildren

        T withNewChildren​(T node,
                          java.util.Map<java.lang.String,​java.util.List<T>> newChildren)