groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "K Adithyan (tech)" <adi.k....@gmail.com>
Subject How to specify String[] in @ClosureParams
Date Mon, 02 Apr 2018 05:21:30 GMT
Team,

One of my closure should work on only one String[] argument, so that people
can work as below.. How should I configure in @ClosureParams annotation.

eachRow { row ->

   context.portinfo[row[0]] = row[1]
}



I am able to properly configure @ClosureParams for List, Map or Other
objects. I know that even without that @ClosureParams annotation, the code
will work in the runtime...! But, still I want to do it

Pls advice

Mime
View raw message