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

io.smallrye.mutiny.vertx.codegen.lang.ConditionalCodeWriter Maven / Gradle / Ivy

The newest version!
package io.smallrye.mutiny.vertx.codegen.lang;

import java.io.PrintWriter;
import java.util.function.Predicate;

import io.vertx.codegen.ClassModel;

public interface ConditionalCodeWriter extends Predicate, CodeWriter {

    default Void apply(ClassModel model, PrintWriter writer) {
        if (test(model)) {
            generate(model, writer);
        }
        return null;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy