At first glance, my impression is that this need isn't common or complex enough to justify inclusion. It could probably be straight-forwardedly implemented with lambdas by someone who does need it.
That said, if it is added, the signature should probably be CollectionUtils.firstNonEmpty(Collection... collection) for more generality and use. Also NotEmpty --> NonEmpty On Wed, Mar 20, 2024 at 8:28 AM Marco Dell'Anna <marco.della...@gmail.com> wrote: > > Hi, > I would like to have a CollectionUtils.firstNotEmpty(List... lists) method. > Since commons-collections/CONTRIBUTING.md at master · > apache/commons-collections · GitHub > <https://github.com/apache/commons-collections/blob/master/CONTRIBUTING.md> > says: > * If you're planning to implement a new feature it makes sense to discuss > your changes on the dev list first. This way you can make sure you're not > wasting your time on something that isn't considered to be in Apache > Commons Collections's scope. > I'm asking if I should create a Merge Request > > Thanks > Marco Dell'Anna -- Elliotte Rusty Harold elh...@ibiblio.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org