vertx-codegen
vertx-codegen copied to clipboard
Extended function support
Currently we support java.util.function.Function
, we could extend it to support any functional interface declaring one parameter and a non void return type, so Function
, IntToLongFunction
.
This will require to have proper support in code generators (JavaScript, Ceylon and Scala).
@vietj I will try to look into it. There's a lot stuff going on in the code and I need some time to figure it out.
One idea from the first look is to create FunctionalInterfaceTypeInfo
class which will handle all functional interfaces both parameterized and not.