package io.vertx.reactivex.ext.web.validation;
import io.vertx.reactivex.RxHelper;
import io.vertx.reactivex.ObservableHelper;
import io.vertx.reactivex.FlowableHelper;
import io.vertx.reactivex.impl.AsyncResultMaybe;
import io.vertx.reactivex.impl.AsyncResultSingle;
import io.vertx.reactivex.impl.AsyncResultCompletable;
import io.vertx.reactivex.WriteStreamObserver;
import io.vertx.reactivex.WriteStreamSubscriber;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.Iterator;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.vertx.core.Handler;
import io.vertx.core.AsyncResult;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.lang.rx.RxGen;
import io.vertx.lang.rx.TypeArg;
import io.vertx.lang.rx.MappingIterator;
@RxGen(io.vertx.ext.web.validation.RequestPredicateResult.class)
public class RequestPredicateResult {
@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();
}
public static final TypeArg<RequestPredicateResult> __TYPE_ARG = new 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;
}
public io.vertx.ext.web.validation.RequestPredicateResult getDelegate() {
return delegate;
}
public boolean succeeded() {
boolean ret = delegate.succeeded();
return ret;
}
public String getErrorMessage() {
String ret = delegate.getErrorMessage();
return ret;
}
public static io.vertx.reactivex.ext.web.validation.RequestPredicateResult success() {
io.vertx.reactivex.ext.web.validation.RequestPredicateResult ret = io.vertx.reactivex.ext.web.validation.RequestPredicateResult.newInstance((io.vertx.ext.web.validation.RequestPredicateResult)io.vertx.ext.web.validation.RequestPredicateResult.success());
return ret;
}
public static io.vertx.reactivex.ext.web.validation.RequestPredicateResult failed(String message) {
io.vertx.reactivex.ext.web.validation.RequestPredicateResult ret = io.vertx.reactivex.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;
}
}