arturobernalg commented on pull request #216:
URL:
https://github.com/apache/commons-collections/pull/216#issuecomment-786860741
> Code looks OK. I think we just need to consider whether we want a new
method for this, or if existing ways to use the code for this are better
alternatives (easier maintenance having less methods).
>
> ```java
> List<String> l = Arrays.asList("a", "b", "c", "");
>
> boolean b = CollectionUtils.containsAny(l, new Object[] { null, "" }); //
or
> boolean b = IterableUtils.matchesAny(l, (e) -> e == null || "".equals(e));
> ```
>
> This is similar to [lang]'s `isAnyEmpty`, but instead of a chain of
characters, we check the array of objects. But probably we don't want a
`isAnyBlank` (`" "` is blank, not empty).
>
> And this one would need a JIRA issue @arturobernalg but we can wait for
others to chime in and take a look at the new code first before creating one if
you'd like.
>
> Thanks for the PR's!
> Bruno
Hi @kinow
Jira created COLLECTIONS-783.
I will check your comment and analyze what can we reuse and what will the
best alternative. Thank you very much
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]