Java 8 and lambdas: ooooh that's how it works, then
juliensimon.blogspot.com
juliensimon.blogspot.com
Java doesn't need anymore disservices.
Even "object orientation" had already been invented back then, but I assume no one could have imagined that it would be perverted into a chronic bulimia of superfluous types as demonstrated by the "LinearSearchModeFactory" example here.
That said, I suspect the author is not that familiar with Java, considering that using an enum would not take more space and would be way more idiomatic than hand-rolled integers. Also, the Java folks found out about type inference, which should be pointed out in any article about Java lambdas.
I do some C# too, and I use lambdas regularly with .Select() (but not so much otherwise - though I can imagine it's an effect of the codebase). But you do need factories/providers if you want IoC and you use variables in different scopes...
Lambdas may have some benefits, but this article really doesn't demonstrate any.
(I shouldn't really snark - I don't have much occasion to write any Java these days but I do quite miss it sometimes... and the things that Java has gained since I last used it in anger, like lambdas, make it really quite appealing to me once again.)