io.vertx.mutiny.ext.web.handler.graphql.schema.VertxDataFetcher Maven / Gradle / Ivy
package io.vertx.mutiny.ext.web.handler.graphql.schema;
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 java.util.concurrent.CompletionStage;
import graphql.schema.DataFetcher;
/**
* 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.schema.VertxDataFetcher original} non Mutiny-ified interface using Vert.x codegen.
*/
@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.handler.graphql.schema.VertxDataFetcher.class)
public class VertxDataFetcher {
public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new VertxDataFetcher((io.vertx.ext.web.handler.graphql.schema.VertxDataFetcher) obj),
VertxDataFetcher::getDelegate
);
private final io.vertx.ext.web.handler.graphql.schema.VertxDataFetcher delegate;
public final io.smallrye.mutiny.vertx.TypeArg __typeArg_0;
public VertxDataFetcher(io.vertx.ext.web.handler.graphql.schema.VertxDataFetcher delegate) {
this.delegate = delegate;
this.__typeArg_0 = io.smallrye.mutiny.vertx.TypeArg.unknown(); }
public VertxDataFetcher(Object delegate, TypeArg typeArg_0) {
this.delegate = (io.vertx.ext.web.handler.graphql.schema.VertxDataFetcher)delegate;
this.__typeArg_0 = typeArg_0;
}
public VertxDataFetcher(io.vertx.ext.web.handler.graphql.schema.VertxDataFetcher delegate, io.smallrye.mutiny.vertx.TypeArg typeArg_0) {
this.delegate = delegate;
this.__typeArg_0 = typeArg_0;
}
/**
* Empty constructor used by CDI, do not use this constructor directly.
**/
VertxDataFetcher() {
this.delegate = null;
this.__typeArg_0 = io.smallrye.mutiny.vertx.TypeArg.unknown(); }
public io.vertx.ext.web.handler.graphql.schema.VertxDataFetcher 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;
VertxDataFetcher that = (VertxDataFetcher) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static VertxDataFetcher newInstance(io.vertx.ext.web.handler.graphql.schema.VertxDataFetcher arg) {
return arg != null ? new VertxDataFetcher(arg) : null;
}
public static VertxDataFetcher newInstance(io.vertx.ext.web.handler.graphql.schema.VertxDataFetcher arg, io.smallrye.mutiny.vertx.TypeArg __typeArg_T) {
return arg != null ? new VertxDataFetcher(arg, __typeArg_T) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy