On 05.08.20 16:26, MG wrote:
Thank you, Jochen - that's actually a Groovy feature that has been
around for a long time, that I completely forgot about :-)

;)

https://groovy-lang.org/metaprogramming.html#_extension_modules
https://mrhaki.blogspot.com/2013/01/groovy-goodness-adding-extra-methods.html

Do you know if:

 1. This works for interfaces (e.g. List and Map) ?

yes, should do

 2. Whether IntelliJ picks up those extension methods (i.e. will
    Intellisense know that e.g. List now has a getSize() method) ?

That I am not sure of.

bye Jochen

Reply via email to