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>
>
|