[ 
https://issues.apache.org/jira/browse/LANG-1666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17388945#comment-17388945
 ] 

Felix Hagemans commented on LANG-1666:
--------------------------------------

I have created a pull request to implement this feature. Let me know what you 
think.

> 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: 10m
>  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.3.4#803005)

Reply via email to