paulk-asert opened a new pull request, #2752: URL: https://github.com/apache/groovy/pull/2752
… methods GROOVY-12054 added java.util.function twins in DefaultGroovyMethods but not the array forms in ArrayGroovyMethods. This completes them. Object arrays (11): each(Consumer), eachWithIndex(ObjIntConsumer), collect(Function) x2, collectEntries(Function) x2, any/every/find/findAll/count (Predicate). Bodies delegate to the existing DGM twins. Primitive arrays (9): any/every/count on int[]/long[]/double[] accepting IntPredicate/LongPredicate/DoublePredicate. The primitive count predicate forms are new (primitives had only value-count); they coexist cleanly with count(x[], Object value) — a value selects value-count, a predicate selects predicate-count. byte/char/short/float are excluded (no JDK predicate SAM). Follows the GROOVY-12054 conventions. Regression tests added to LambdasTest. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
