[
https://issues.apache.org/jira/browse/LANG-1666?focusedWorklogId=693469&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-693469
]
ASF GitHub Bot logged work on LANG-1666:
----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Dec/21 18:35
Start Date: 09/Dec/21 18:35
Worklog Time Spent: 10m
Work Description: felhag commented on pull request #782:
URL: https://github.com/apache/commons-lang/pull/782#issuecomment-990116909
Yeah, I know but I think the second option looks better. But nvm, I will
close this issue for now, thanks for your response.
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 693469)
Time Spent: 1h 40m (was: 1.5h)
> Add ObjectUtils.equalsAny
> -------------------------
>
> Key: LANG-1666
> URL: https://issues.apache.org/jira/browse/LANG-1666
> Project: Commons Lang
> Issue Type: New Feature
> Reporter: Felix Hagemans
> Priority: Major
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> I think an {{equalsAny}} utility method would be a nice simple addition to
> the ObjectUtils class. For example:
> {code:java}if (valueA.equals(someObject.getSomeGetter()) ||
> valueB.equals(someObject.getSomeGetter()) { ... }{code}
> could be written a lot cleaner:
> {code:java}if (ObjectUtils.equalsAny(someObject.getSomeGetter(), valueA,
> valueB) { ... }{code}
> It would work similar to the already existing StringUtils.equalsAny method.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)