rx java - RxJava Function with more than nine arguments -


i'm running benchmarks, , require functions 16 arguments. rxjava defines function[1-9], , functionn. how can create function more 9 arguments?

why not use functionn? java it's funcn. pass 16 arguments , work fine.

public interface funcn<r> extends function {     public r call(object... args); } 

source code func9

public interface func9<t1, t2, t3, t4, t5, t6, t7, t8, t9, r> extends function {     public r call(t1 t1, t2 t2, t3 t3, t4 t4, t5 t5, t6 t6, t7 t7, t8 t8, t9 t9); } 

if need func10 func16 implement every function on own:

public interface func10<t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, r> extends function {     public r call(t1 t1, t2 t2, t3 t3, t4 t4, t5 t5, t6 t6, t7 t7, t8 t8, t9 t9, t10 t10); } 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -