Class IteratorMethodsCodeWriter
java.lang.Object
io.smallrye.mutiny.vertx.codegen.lang.IteratorMethodsCodeWriter
- All Implemented Interfaces:
CodeWriter,ConditionalCodeWriter,BiFunction<io.vertx.codegen.ClassModel,,PrintWriter, Void> Predicate<io.vertx.codegen.ClassModel>
Add methods if the class implements
Iterator interface.
It also injects a toMulti method if not present.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(io.vertx.codegen.ClassModel model, PrintWriter writer) booleantest(io.vertx.codegen.ClassModel model) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface io.smallrye.mutiny.vertx.codegen.lang.CodeWriter
genTypeNameMethods inherited from interface io.smallrye.mutiny.vertx.codegen.lang.ConditionalCodeWriter
apply
-
Constructor Details
-
IteratorMethodsCodeWriter
public IteratorMethodsCodeWriter()
-
-
Method Details
-
generate
- Specified by:
generatein interfaceCodeWriter
-
test
public boolean test(io.vertx.codegen.ClassModel model)
-