arguments, but seems no way to have a anonymous function class that accepts more arguments in Java?
like to have an C-style int (*my_function)(int, int, double, double) we firstly need to manually define an interface?
You mean basically a „TriFunction“ or do I misunderstand you?
After checking, I think the best solution here is to manually define an interface. Anonymous solutions seems not meet the philosophy of Java.
Обсуждают сегодня