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

graphql.nadel.result.RootExecutionResultNode Maven / Gradle / Ivy

There is a newer version: 2021-03-26T09-09-21-fabd441
Show newest version
package graphql.nadel.result;

import graphql.Internal;
import graphql.execution.ExecutionPath;

import java.util.function.Consumer;

@Internal
public class RootExecutionResultNode extends ObjectExecutionResultNode {


    private RootExecutionResultNode(Builder builder) {
        super(builder, null);
    }

    public static Builder newRootExecutionResultNode() {
        return new Builder();
    }

    @Override
    public > RootExecutionResultNode transform(Consumer builderConsumer) {
        Builder builder = new Builder(this);
        builderConsumer.accept((T) builder);
        return builder.build();
    }

    public static class Builder extends BuilderBase {

        public Builder() {

        }

        public Builder(RootExecutionResultNode existing) {
            super(existing);
        }

        @Override
        public RootExecutionResultNode build() {
            super.executionPath(ExecutionPath.rootPath());
            return new RootExecutionResultNode(this);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy