tusharsh8860 commented on PR #1545: URL: https://github.com/apache/commons-lang/pull/1545#issuecomment-3693832691
Thanks for reviewing, Counting occurrences in arrays is a very common task but ArrayUtil currently does not provide a utility for it even though it already offers related methods such as contains, indexOf, and removeAllOccurrences this method removes the boilerplate for loop for counting and reduces code also I noticed that currently we use a normal for loop or we use Collections.frequency but they require us to first convert the primitive to Object Based collections(data type), however this aims to provide same functionality without using Collections or apache common collection -- 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]
