Technology

Playing with call() using Groovy Metaprogramming

In Groovy you can use “()” with any object which in turn is same as calling call() method on that object. You can write code which are more human readable using this groovy feature. This is somewhat overriding “()” operator. The blog adds Microsoft VB array access like syntax to Java List.

Bhagwat Kumar
Bhagwat Kumar
Read