[
https://issues.apache.org/jira/browse/COLLECTIONS-882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18051106#comment-18051106
]
Anurag Agarwal commented on COLLECTIONS-882:
--------------------------------------------
Sure it does make sense, just that one has to always wrap the method within
Math.toExactInt
> IterableUtils.countMatches should return int
> --------------------------------------------
>
> Key: COLLECTIONS-882
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-882
> Project: Commons Collections
> Issue Type: Wish
> Components: Iterator
> Reporter: Anurag Agarwal
> Priority: Minor
>
> IterableUtils.countMatches internally uses size to compute the size of the
> collection which return int, but the method itself returns long.
>
> Moreover since the input is an iterable, I don't know if it makes sense for
> an iterable to be longer than int bounds
--
This message was sent by Atlassian Jira
(v8.20.10#820010)