io.vertx.mutiny.ext.web.validation.builder.ArrayParserFactory Maven / Gradle / Ivy
The newest version!
package io.vertx.mutiny.ext.web.validation.builder;
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.ext.web.validation.impl.parser.ValueParser;
/**
* This interface is used to create able to parse serialized array structures.
*
* Look at {@link io.vertx.mutiny.ext.web.validation.builder.Parsers} for all available factories
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.validation.builder.ArrayParserFactory original} non Mutiny-ified interface using Vert.x codegen.
*/
@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.validation.builder.ArrayParserFactory.class)
public class ArrayParserFactory {
public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new ArrayParserFactory((io.vertx.ext.web.validation.builder.ArrayParserFactory) obj),
ArrayParserFactory::getDelegate
);
private final io.vertx.ext.web.validation.builder.ArrayParserFactory delegate;
public ArrayParserFactory(io.vertx.ext.web.validation.builder.ArrayParserFactory delegate) {
this.delegate = delegate;
}
public ArrayParserFactory(Object delegate) {
this.delegate = (io.vertx.ext.web.validation.builder.ArrayParserFactory)delegate;
}
/**
* Empty constructor used by CDI, do not use this constructor directly.
**/
ArrayParserFactory() {
this.delegate = null;
}
public io.vertx.ext.web.validation.builder.ArrayParserFactory 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;
ArrayParserFactory that = (ArrayParserFactory) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public io.vertx.ext.web.validation.impl.parser.ValueParser newArrayParser(io.vertx.ext.web.validation.impl.parser.ValueParser itemsParser) {
io.vertx.ext.web.validation.impl.parser.ValueParser ret = delegate.newArrayParser(itemsParser);
return ret;
}
public static ArrayParserFactory newInstance(io.vertx.ext.web.validation.builder.ArrayParserFactory arg) {
return arg != null ? new ArrayParserFactory(arg) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy