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

io.vertx.mutiny.ext.web.handler.graphql.dataloader.VertxBatchLoader Maven / Gradle / Ivy

There is a newer version: 3.17.1
Show newest version
package io.vertx.mutiny.ext.web.handler.graphql.dataloader;

import java.util.Map;
import java.util.stream.Collectors;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.vertx.TypeArg;
import io.vertx.codegen.annotations.Fluent;
import io.smallrye.common.annotation.CheckReturnValue;
import org.dataloader.BatchLoaderWithContext;

/**
 * A  that works well with Vert.x callback and  based APIs.
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.handler.graphql.dataloader.VertxBatchLoader original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.handler.graphql.dataloader.VertxBatchLoader.class) public class VertxBatchLoader { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new VertxBatchLoader((io.vertx.ext.web.handler.graphql.dataloader.VertxBatchLoader) obj), VertxBatchLoader::getDelegate ); private final io.vertx.ext.web.handler.graphql.dataloader.VertxBatchLoader delegate; public final io.smallrye.mutiny.vertx.TypeArg __typeArg_0; public final io.smallrye.mutiny.vertx.TypeArg __typeArg_1; public VertxBatchLoader(io.vertx.ext.web.handler.graphql.dataloader.VertxBatchLoader delegate) { this.delegate = delegate; this.__typeArg_0 = io.smallrye.mutiny.vertx.TypeArg.unknown(); this.__typeArg_1 = io.smallrye.mutiny.vertx.TypeArg.unknown(); } public VertxBatchLoader(Object delegate, TypeArg typeArg_0, TypeArg typeArg_1) { this.delegate = (io.vertx.ext.web.handler.graphql.dataloader.VertxBatchLoader)delegate; this.__typeArg_0 = typeArg_0; this.__typeArg_1 = typeArg_1; } public VertxBatchLoader(io.vertx.ext.web.handler.graphql.dataloader.VertxBatchLoader delegate, io.smallrye.mutiny.vertx.TypeArg typeArg_0, io.smallrye.mutiny.vertx.TypeArg typeArg_1) { this.delegate = delegate; this.__typeArg_0 = typeArg_0; this.__typeArg_1 = typeArg_1; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ VertxBatchLoader() { this.delegate = null; this.__typeArg_0 = io.smallrye.mutiny.vertx.TypeArg.unknown(); this.__typeArg_1 = io.smallrye.mutiny.vertx.TypeArg.unknown(); } public io.vertx.ext.web.handler.graphql.dataloader.VertxBatchLoader getDelegate() { return delegate; } @Override public String toString() { return delegate.toString(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VertxBatchLoader that = (VertxBatchLoader) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } public static VertxBatchLoader newInstance(io.vertx.ext.web.handler.graphql.dataloader.VertxBatchLoader arg) { return arg != null ? new VertxBatchLoader(arg) : null; } public static VertxBatchLoader newInstance(io.vertx.ext.web.handler.graphql.dataloader.VertxBatchLoader arg, io.smallrye.mutiny.vertx.TypeArg __typeArg_K, io.smallrye.mutiny.vertx.TypeArg __typeArg_V) { return arg != null ? new VertxBatchLoader(arg, __typeArg_K, __typeArg_V) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy