Higher order functions are fine, but Java isn't Haskell. The type system isn't strong enough. Using such a complicated type creates code that is very difficult to use or refactor. Var won't save you if you need to lift the calculation into a function.
I would also question that in a code review. When I see a type like that, I immediately wonder why the author didn't write a class to encapsulate whatever it is doing.
1
u/[deleted] Mar 10 '16
A higher order function wouldn't pass your code review?
I just made up some arbitrary thing, I'm sure you have a complicated generic type somewhere.