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

org.dotwebstack.graphql.orchestrate.Result Maven / Gradle / Ivy

package org.dotwebstack.graphql.orchestrate;

import java.util.Map;
import java.util.function.Consumer;
import lombok.Builder;
import lombok.Getter;
import lombok.NonNull;

@Getter
@Builder(builderMethodName = "newResult", toBuilder = true)
public final class Result {

  private final Map data;

  public Result transform(@NonNull Consumer builderConsumer) {
    var builder = toBuilder();
    builderConsumer.accept(builder);
    return builder.build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy