io.vertx.mutiny.ext.web.validation.RequestPredicateResult Maven / Gradle / Ivy
The newest version!
package io.vertx.mutiny.ext.web.validation;
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;
/**
* Result of a {@link io.vertx.mutiny.ext.web.validation.RequestPredicate}
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.validation.RequestPredicateResult original} non Mutiny-ified interface using Vert.x codegen.
*/
@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.validation.RequestPredicateResult.class)
public class RequestPredicateResult {
public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new RequestPredicateResult((io.vertx.ext.web.validation.RequestPredicateResult) obj),
RequestPredicateResult::getDelegate
);
private final io.vertx.ext.web.validation.RequestPredicateResult delegate;
public RequestPredicateResult(io.vertx.ext.web.validation.RequestPredicateResult delegate) {
this.delegate = delegate;
}
public RequestPredicateResult(Object delegate) {
this.delegate = (io.vertx.ext.web.validation.RequestPredicateResult)delegate;
}
/**
* Empty constructor used by CDI, do not use this constructor directly.
**/
RequestPredicateResult() {
this.delegate = null;
}
public io.vertx.ext.web.validation.RequestPredicateResult 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;
RequestPredicateResult that = (RequestPredicateResult) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
/**
* @return
*/
public boolean succeeded() {
boolean ret = delegate.succeeded();
return ret;
}
/**
* @return
*/
public String getErrorMessage() {
String ret = delegate.getErrorMessage();
return ret;
}
public static io.vertx.mutiny.ext.web.validation.RequestPredicateResult success() {
io.vertx.mutiny.ext.web.validation.RequestPredicateResult ret = io.vertx.mutiny.ext.web.validation.RequestPredicateResult.newInstance((io.vertx.ext.web.validation.RequestPredicateResult)io.vertx.ext.web.validation.RequestPredicateResult.success());
return ret;
}
public static io.vertx.mutiny.ext.web.validation.RequestPredicateResult failed(String message) {
io.vertx.mutiny.ext.web.validation.RequestPredicateResult ret = io.vertx.mutiny.ext.web.validation.RequestPredicateResult.newInstance((io.vertx.ext.web.validation.RequestPredicateResult)io.vertx.ext.web.validation.RequestPredicateResult.failed(message));
return ret;
}
public static RequestPredicateResult newInstance(io.vertx.ext.web.validation.RequestPredicateResult arg) {
return arg != null ? new RequestPredicateResult(arg) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy