groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klein <i...@aklein.org>
Subject Re: Groovy Extension Method - Collection or GroovyMbean
Date Thu, 18 Feb 2016 19:28:05 GMT
If your calculations need the List, put it to List, not the ArrayList,
but check inside if all elements are of type GroovyMbeans.
If you can go with GPath like e.g. list.doIt().sum() that returns a List
with all the results of doIt and then sums it, then put it to
GroovyMbeans directly.

Regards,
Sascha

Am 18.02.2016 um 18:26 schrieb Gerald Wiltse:
> I want to do a bunch of calculations and combinations around
> collections of GroovyMbeans.  I want to add these "Functions/Formulas"
> as methods.  Would it be wiser to add these to the ArrayList class, or
> to GroovyMbean class?
>
> Regards,
> Jerry
>
> Gerald R. Wiltse
> jerrywiltse@gmail.com <mailto:jerrywiltse@gmail.com>
>


Mime
View raw message