commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (LANG-1666) Add ObjectUtils.equalsAny
Date Mon, 02 Aug 2021 21:36:00 GMT


ASF GitHub Bot logged work on LANG-1666:

                Author: ASF GitHub Bot
            Created on: 02/Aug/21 21:35
            Start Date: 02/Aug/21 21:35
    Worklog Time Spent: 10m 
      Work Description: coveralls commented on pull request #782:

   [![Coverage Status](](
   Coverage increased (+0.002%) to 94.997% when pulling **ba9f48cf41b0694d156dc586815b1c49c824f272
on felhag:LANG-1666-equals-any** into **7c658527094083b2037d362916adf8eb2493ea65 on apache:master**.

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:

For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 632620)
    Time Spent: 20m  (was: 10m)

> Add ObjectUtils.equalsAny
> -------------------------
>                 Key: LANG-1666
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>            Reporter: Felix Hagemans
>            Priority: Major
>          Time Spent: 20m
>  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) { ...
> It would work similar to the already existing StringUtils.equalsAny method. 

This message was sent by Atlassian Jira

View raw message