io.vertx.mutiny.ext.web.templ.rocker.RockerTemplateEngine Maven / Gradle / Ivy
The newest version!
package io.vertx.mutiny.ext.web.templ.rocker;
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;
/**
* A template engine that uses the Rocker library.
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.templ.rocker.RockerTemplateEngine original} non Mutiny-ified interface using Vert.x codegen.
*/
@io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.templ.rocker.RockerTemplateEngine.class)
public class RockerTemplateEngine extends io.vertx.mutiny.ext.web.common.template.TemplateEngine {
public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new RockerTemplateEngine((io.vertx.ext.web.templ.rocker.RockerTemplateEngine) obj),
RockerTemplateEngine::getDelegate
);
private final io.vertx.ext.web.templ.rocker.RockerTemplateEngine delegate;
public RockerTemplateEngine(io.vertx.ext.web.templ.rocker.RockerTemplateEngine delegate) {
super(delegate);
this.delegate = delegate;
}
public RockerTemplateEngine(Object delegate) {
super((io.vertx.ext.web.templ.rocker.RockerTemplateEngine)delegate);
this.delegate = (io.vertx.ext.web.templ.rocker.RockerTemplateEngine)delegate;
}
/**
* Empty constructor used by CDI, do not use this constructor directly.
**/
RockerTemplateEngine() {
super(null);
this.delegate = null;
}
public io.vertx.ext.web.templ.rocker.RockerTemplateEngine 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;
RockerTemplateEngine that = (RockerTemplateEngine) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
/**
* @return the engine
*/
public static io.vertx.mutiny.ext.web.templ.rocker.RockerTemplateEngine create() {
io.vertx.mutiny.ext.web.templ.rocker.RockerTemplateEngine ret = io.vertx.mutiny.ext.web.templ.rocker.RockerTemplateEngine.newInstance((io.vertx.ext.web.templ.rocker.RockerTemplateEngine)io.vertx.ext.web.templ.rocker.RockerTemplateEngine.create());
return ret;
}
/**
* @param extension
* @return the engine
*/
public static io.vertx.mutiny.ext.web.templ.rocker.RockerTemplateEngine create(String extension) {
io.vertx.mutiny.ext.web.templ.rocker.RockerTemplateEngine ret = io.vertx.mutiny.ext.web.templ.rocker.RockerTemplateEngine.newInstance((io.vertx.ext.web.templ.rocker.RockerTemplateEngine)io.vertx.ext.web.templ.rocker.RockerTemplateEngine.create(extension));
return ret;
}
/**
* Default template extension
*/
public static final String DEFAULT_TEMPLATE_EXTENSION = io.vertx.ext.web.templ.rocker.RockerTemplateEngine.DEFAULT_TEMPLATE_EXTENSION;
public static RockerTemplateEngine newInstance(io.vertx.ext.web.templ.rocker.RockerTemplateEngine arg) {
return arg != null ? new RockerTemplateEngine(arg) : null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy