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

io.vertx.mutiny.ext.web.openapi.OpenAPIHolder Maven / Gradle / Ivy

There is a newer version: 3.16.0
Show newest version
package io.vertx.mutiny.ext.web.openapi;

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 io.vertx.core.json.JsonObject;

@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.openapi.OpenAPIHolder.class)
public class OpenAPIHolder {

  public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>(    obj -> new OpenAPIHolder((io.vertx.ext.web.openapi.OpenAPIHolder) obj),
    OpenAPIHolder::getDelegate
  );

  private final io.vertx.ext.web.openapi.OpenAPIHolder delegate;
  
  public OpenAPIHolder(io.vertx.ext.web.openapi.OpenAPIHolder delegate) {
    this.delegate = delegate;
  }

  public OpenAPIHolder(Object delegate) {
    this.delegate = (io.vertx.ext.web.openapi.OpenAPIHolder)delegate;
  }

  /**
   * Empty constructor used by CDI, do not use this constructor directly.
   **/
  OpenAPIHolder() {
    this.delegate = null;
  }

  public io.vertx.ext.web.openapi.OpenAPIHolder 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;
    OpenAPIHolder that = (OpenAPIHolder) o;
    return delegate.equals(that.delegate);
  }
  
  @Override
  public int hashCode() {
    return delegate.hashCode();
  }

  /**
   * @param pointer 
   * @return 
   */
  public JsonObject getCached(io.vertx.mutiny.core.json.pointer.JsonPointer pointer) { 
    JsonObject ret = delegate.getCached(pointer.getDelegate());
    return ret;
  }

  /**
   * @param obj 
   * @return 
   */
  public JsonObject solveIfNeeded(JsonObject obj) { 
    JsonObject ret = delegate.solveIfNeeded(obj);
    return ret;
  }

  /**
   * @return the root of the OpenAPI document
   */
  public JsonObject getOpenAPI() { 
    JsonObject ret = delegate.getOpenAPI();
    return ret;
  }

  public static  OpenAPIHolder newInstance(io.vertx.ext.web.openapi.OpenAPIHolder arg) {
    return arg != null ? new OpenAPIHolder(arg) : null;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy