java.lang.Object
io.smallrye.mutiny.vertx.codegen.lang.IterableMethodCodeWriter
All Implemented Interfaces:
CodeWriter, ConditionalCodeWriter, BiFunction<io.vertx.codegen.ClassModel,PrintWriter,Void>, Predicate<io.vertx.codegen.ClassModel>

public class IterableMethodCodeWriter extends Object implements ConditionalCodeWriter
Add methods if the class implements Iterable, so the iterator method and the toMulti method.
  • Constructor Details

    • IterableMethodCodeWriter

      public IterableMethodCodeWriter()
  • Method Details

    • generate

      public void generate(io.vertx.codegen.ClassModel model, PrintWriter writer)
      Specified by:
      generate in interface CodeWriter
    • test

      public boolean test(io.vertx.codegen.ClassModel model)
      Specified by:
      test in interface Predicate<io.vertx.codegen.ClassModel>