开发者

Collection findAllResults in Groovy 1.7.5

开发者 https://www.devze.com 2023-02-28 23:29 出处:网络
Groovy 1.7.5 claims to have both findResult and findAllResults.But when I try, it seems to have only findResult.fi开发者_JAVA百科ndAllResults is not included in the groovy jdk documentation, either.Am

Groovy 1.7.5 claims to have both findResult and findAllResults. But when I try, it seems to have only findResult. fi开发者_JAVA百科ndAllResults is not included in the groovy jdk documentation, either. Am I not reading it thoroughly?


If you read the comments in that issue, (Ted Naleid added a comment - 19/Jun/10 10:46 PM) says that findAllResults was removed as it can be easily achieved with an inject in it's place


As a follow up, this has been implemented as of Groovy 1.8.1 as findResults instead of findAllResults. It's cleaner than using inject in many situations.

0

精彩评论

暂无评论...
验证码 换一张
取 消