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

io.vertx.mutiny.ext.web.handler.graphql.dataloader.VertxMappedBatchLoader 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.MappedBatchLoaderWithContext;

/**
 * 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.VertxMappedBatchLoader original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.handler.graphql.dataloader.VertxMappedBatchLoader.class) public class VertxMappedBatchLoader { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new VertxMappedBatchLoader((io.vertx.ext.web.handler.graphql.dataloader.VertxMappedBatchLoader) obj), VertxMappedBatchLoader::getDelegate ); private final io.vertx.ext.web.handler.graphql.dataloader.VertxMappedBatchLoader delegate; public final io.smallrye.mutiny.vertx.TypeArg __typeArg_0; public final io.smallrye.mutiny.vertx.TypeArg __typeArg_1; public VertxMappedBatchLoader(io.vertx.ext.web.handler.graphql.dataloader.VertxMappedBatchLoader delegate) { this.delegate = delegate; this.__typeArg_0 = io.smallrye.mutiny.vertx.TypeArg.unknown(); this.__typeArg_1 = io.smallrye.mutiny.vertx.TypeArg.unknown(); } public VertxMappedBatchLoader(Object delegate, TypeArg typeArg_0, TypeArg typeArg_1) { this.delegate = (io.vertx.ext.web.handler.graphql.dataloader.VertxMappedBatchLoader)delegate; this.__typeArg_0 = typeArg_0; this.__typeArg_1 = typeArg_1; } public VertxMappedBatchLoader(io.vertx.ext.web.handler.graphql.dataloader.VertxMappedBatchLoader 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. **/ VertxMappedBatchLoader() { 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.VertxMappedBatchLoader 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; VertxMappedBatchLoader that = (VertxMappedBatchLoader) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } public static VertxMappedBatchLoader newInstance(io.vertx.ext.web.handler.graphql.dataloader.VertxMappedBatchLoader arg) { return arg != null ? new VertxMappedBatchLoader(arg) : null; } public static VertxMappedBatchLoader newInstance(io.vertx.ext.web.handler.graphql.dataloader.VertxMappedBatchLoader arg, io.smallrye.mutiny.vertx.TypeArg __typeArg_K, io.smallrye.mutiny.vertx.TypeArg __typeArg_V) { return arg != null ? new VertxMappedBatchLoader(arg, __typeArg_K, __typeArg_V) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy