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

io.vertx.mutiny.ext.auth.authorization.NotAuthorization Maven / Gradle / Ivy

The newest version!
package io.vertx.mutiny.ext.auth.authorization;

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;

/**
 * Allows to perform a logical 'not' of the specified authorization
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.authorization.NotAuthorization original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.auth.authorization.NotAuthorization.class) public class NotAuthorization extends io.vertx.mutiny.ext.auth.authorization.Authorization { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new NotAuthorization((io.vertx.ext.auth.authorization.NotAuthorization) obj), NotAuthorization::getDelegate ); private final io.vertx.ext.auth.authorization.NotAuthorization delegate; public NotAuthorization(io.vertx.ext.auth.authorization.NotAuthorization delegate) { super(delegate); this.delegate = delegate; } public NotAuthorization(Object delegate) { super((io.vertx.ext.auth.authorization.NotAuthorization)delegate); this.delegate = (io.vertx.ext.auth.authorization.NotAuthorization)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ NotAuthorization() { super(null); this.delegate = null; } public io.vertx.ext.auth.authorization.NotAuthorization 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; NotAuthorization that = (NotAuthorization) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } public static io.vertx.mutiny.ext.auth.authorization.NotAuthorization create(io.vertx.mutiny.ext.auth.authorization.Authorization authorization) { io.vertx.mutiny.ext.auth.authorization.NotAuthorization ret = io.vertx.mutiny.ext.auth.authorization.NotAuthorization.newInstance((io.vertx.ext.auth.authorization.NotAuthorization)io.vertx.ext.auth.authorization.NotAuthorization.create(authorization.getDelegate())); return ret; } public io.vertx.mutiny.ext.auth.authorization.Authorization getAuthorization() { io.vertx.mutiny.ext.auth.authorization.Authorization ret = io.vertx.mutiny.ext.auth.authorization.Authorization.newInstance((io.vertx.ext.auth.authorization.Authorization)delegate.getAuthorization()); return ret; } public static NotAuthorization newInstance(io.vertx.ext.auth.authorization.NotAuthorization arg) { return arg != null ? new NotAuthorization(arg) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy