sebbASF commented on PR #696: URL: https://github.com/apache/commons-lang/pull/696#issuecomment-1846283733
Yes, I understood that. It occurs to me that the code to return all the matches then just becomes: Arrays.stream(enumClass.getEnumConstants()).filter(predicate); And then add .getFirst() if that's all one wants. Do we really need a method for that? -- 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]
